Fix SCRIPT_COMMAND_ORIENTATION db script command.

--HG--
branch : trunk
This commit is contained in:
malcromdev@gmail.com>
2010-05-18 17:45:15 -02:30
parent 483249cc38
commit 7ce2853ca8

View File

@@ -3713,11 +3713,12 @@ void Map::ScriptsProcess()
sLog.outError("SCRIPT_COMMAND_ORIENTATION call for NULL creature.");
break;
}
Unit* pPlayer = (Unit*)source;
if (step.script->datalong)
source->ToCreature()->SetInFront(pPlayer);
source->ToCreature()->SetInFront((Unit*)source);
else
source->ToCreature()->SetOrientation(step.script->o);
source->ToCreature()->SendMovementFlagUpdate();
break;
}