Skip to content

Commit

Permalink
Actually load rotation info from droid file. Bug noticed by Flail13.
Browse files Browse the repository at this point in the history
  • Loading branch information
perim committed Jun 11, 2011
1 parent 84a64f1 commit dbea296
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/game.cpp
Expand Up @@ -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;
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit dbea296

Please sign in to comment.