mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-04-15 12:16:59 +00:00
fix: adding custom behaviors (#1969)
This commit is contained in:
@@ -164,7 +164,12 @@ void ControlBehaviors::ProcessCommand(Entity* const modelEntity, const AMFArrayV
|
||||
LOG("Unknown behavior command (%s)", command.data());
|
||||
}
|
||||
|
||||
if (needsNewBehaviorID) RequestUpdatedID(context);
|
||||
// If we need a new behaviorID, request it and progress the mission for adding a behavior.
|
||||
// "add" takes care of this in the ModelComponent directly so we do not need to do it here for that command.
|
||||
if (needsNewBehaviorID) {
|
||||
RequestUpdatedID(context);
|
||||
context.modelComponent->ProgressAddBehaviorMission(*context.modelOwner);
|
||||
}
|
||||
}
|
||||
|
||||
ControlBehaviors::ControlBehaviors() {
|
||||
|
||||
Reference in New Issue
Block a user