summaryrefslogtreecommitdiff
path: root/train_gui.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-10-16 09:13:04 +0000
committertron <tron@openttd.org>2005-10-16 09:13:04 +0000
commit66bf4f863dc4e98a16772f661f6b3e214c3d92f1 (patch)
tree3d8e77c53a48b7cf354777fe120740126f2a7615 /train_gui.c
parentab657338ec74150e083f2b04a2c3975e1546ad13 (diff)
downloadopenttd-66bf4f863dc4e98a16772f661f6b3e214c3d92f1.tar.xz
(svn r3049) Replace byte/int/uint by RailType where appropriate
Diffstat (limited to 'train_gui.c')
-rw-r--r--train_gui.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/train_gui.c b/train_gui.c
index 257707517..8655725df 100644
--- a/train_gui.c
+++ b/train_gui.c
@@ -173,7 +173,7 @@ void CcCloneTrain(bool success, uint tile, uint32 p1, uint32 p2)
}
static void engine_drawing_loop(int *x, int *y, int *pos, int *sel,
- EngineID* selected_id, byte railtype, byte show_max, bool is_engine)
+ EngineID* selected_id, RailType railtype, byte show_max, bool is_engine)
{
EngineID i;
@@ -208,7 +208,7 @@ static void NewRailVehicleWndProc(Window *w, WindowEvent *e)
{
int count = 0;
- byte railtype = WP(w,buildtrain_d).railtype;
+ RailType railtype = WP(w,buildtrain_d).railtype;
EngineID i;
for (i = 0; i < NUM_TRAIN_ENGINES; i++) {
@@ -224,7 +224,7 @@ static void NewRailVehicleWndProc(Window *w, WindowEvent *e)
DrawWindowWidgets(w);
{
- byte railtype = WP(w,buildtrain_d).railtype;
+ RailType railtype = WP(w,buildtrain_d).railtype;
int sel = WP(w,buildtrain_d).sel_index;
int pos = w->vscroll.pos;
int x = 1;