Actually load rotation info from droid file. Bug noticed by Flail13.

master
Per Inge Mathisen 2011-06-11 14:35:13 +02:00
parent 84a64f1418
commit dbea296778
1 changed files with 2 additions and 0 deletions

View File

@ -4394,6 +4394,7 @@ static bool loadSaveDroid(const char *pFileName, DROID **ppsCurrentDroidLists)
int player = ini.value("player").toInt();
int id = ini.value("id").toInt();
Position pos = ini.vector3i("position");
Rotation rot = ini.vector3i("rotation");
Vector2i tmp;
bool onMission = ini.value("onMission", false).toBool();
DROID_TEMPLATE templ, *psTemplate = &templ;
@ -4447,6 +4448,7 @@ static bool loadSaveDroid(const char *pFileName, DROID **ppsCurrentDroidLists)
{
psDroid->body = psDroid->originalBody;
}
psDroid->rot = rot;
psDroid->inFire = ini.value("inFire", 0).toInt();
psDroid->burnDamage = ini.value("burnDamage", 0).toInt();
psDroid->burnStart = ini.value("burnStart", 0).toInt();