(svn r8969) -Codechange: rework of the player face bits.

- introduce a new format (with backward compatability) that is more clear and needs a much simpler face drawer
 - replace tons of ifs/switches/magic numbers by table lookups
This commit is contained in:
rubidium
2007-03-02 01:17:11 +00:00
parent 89d8f5f7b5
commit ea319b78f8
13 changed files with 287 additions and 127 deletions

View File

@@ -55,6 +55,7 @@
#include "clear_map.h"
#include "fontcache.h"
#include "newgrf_config.h"
#include "player_face.h"
#include "bridge_map.h"
#include "clear_map.h"
@@ -1817,6 +1818,8 @@ bool AfterLoadGame(void)
}
}
if (CheckSavegameVersion(49)) FOR_ALL_PLAYERS(p) p->face = ConvertFromOldPlayerFace(p->face);
return true;
}