summaryrefslogtreecommitdiff
path: root/src/player.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-03-02 01:17:11 +0000
committerrubidium <rubidium@openttd.org>2007-03-02 01:17:11 +0000
commitea319b78f80fb970b1f394cf0853bb03c12ba475 (patch)
treeb045a4c93b01abf5447be66d16bd305c4e9dcb4f /src/player.h
parent89d8f5f7b5376850e8d2f0c1b72253d012ed9bed (diff)
downloadopenttd-ea319b78f80fb970b1f394cf0853bb03c12ba475.tar.xz
(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
Diffstat (limited to 'src/player.h')
-rw-r--r--src/player.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/player.h b/src/player.h
index 2714b19f7..459bc76cd 100644
--- a/src/player.h
+++ b/src/player.h
@@ -147,6 +147,7 @@ typedef struct PlayerAiNew {
} PlayerAiNew;
+typedef uint32 PlayerFace;
typedef struct Player {
uint32 name_2;
@@ -155,7 +156,7 @@ typedef struct Player {
uint16 president_name_1;
uint32 president_name_2;
- uint32 face;
+ PlayerFace face;
int32 player_money;
int32 current_loan;