[11667] Implement transport path rotation

Transport rotation transforms transport path - this makes possible to have few transports with same entry but with modified paths.
This also solvers problems with some transports (like deeprun tram).
TODO: some transports has non standart rotations, that must be stored in db

Signed-off-by: SilverIce <slifeleaf@gmail.com>
This commit is contained in:
SilverIce 2011-06-24 14:28:08 +03:00
parent 85a13fcc33
commit f99fcb1b92
4 changed files with 34 additions and 20 deletions

View file

@ -962,7 +962,7 @@ bool ChatHandler::HandleGameObjectTurnCommand(char* args)
if (!ExtractFloat(&args, z_rot) || !ExtractOptFloat(&args, y_rot, 0) || !ExtractOptFloat(&args, x_rot, 0))
return false;
obj->SetRotationAngles(z_rot, y_rot, x_rot);
obj->SetWorldRotationAngles(z_rot, y_rot, x_rot);
obj->SaveToDB();
PSendSysMessage(LANG_COMMAND_TURNOBJMESSAGE, obj->GetGUIDLow(), obj->GetGOInfo()->name, obj->GetGUIDLow());
return true;