diff options
author | Darkvater <darkvater@openttd.org> | 2006-03-26 22:23:32 +0000 |
---|---|---|
committer | Darkvater <darkvater@openttd.org> | 2006-03-26 22:23:32 +0000 |
commit | d5909f901a8558dbfc562c75a387d66251c6ed20 (patch) | |
tree | 2a31936844a550db9aea12a9b2645bfd4e7e7fa2 /player.h | |
parent | 76f1609ee165bfe66a5250144ced8654e28e36ff (diff) | |
download | openttd-d5909f901a8558dbfc562c75a387d66251c6ed20.tar.xz |
(svn r4128) - CodeChange: Add proper semantics for CargoID for such variables instead of using the general byte-type.
Diffstat (limited to 'player.h')
-rw-r--r-- | player.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -26,7 +26,7 @@ typedef struct AiBuildRec { byte buildcmd_a; byte buildcmd_b; byte direction; - byte cargo; + CargoID cargo; } AiBuildRec; typedef struct PlayerAI { @@ -39,7 +39,7 @@ typedef struct PlayerAI { byte banned_tile_count; byte railtype_to_use; - byte cargo_type; + CargoID cargo_type; byte num_wagons; byte build_kind; byte num_build_rec; @@ -111,7 +111,7 @@ typedef struct PlayerAiNew { // Route stuff - byte cargo; + CargoID cargo; byte tbt; // train/bus/truck 0/1/2 AI_TRAIN/AI_BUS/AI_TRUCK int new_cost; |