ADD: added creation of the moveorder correctly

This commit is contained in:
hwinkel
2023-07-07 09:05:09 +02:00
parent 62c97f4dad
commit 31f21485e0
2 changed files with 20 additions and 1 deletions

View File

@@ -62,7 +62,9 @@ namespace Entities
{
OwnShipTrack->Speed.setValue(val);
Orders::MoveOrder moveorder(OwnShipTrack->getIdentifier(),WHISPER::SourceType::ENTITY);
moveorder.Speed.setValue(val);
MovemtServer_->sendMessage(moveorder.buildMessage().serialize());
LOG_S(INFO)<<"Move Order send";
}
void Entity::setCourse(double val)
{