(svn r3049) Replace byte/int/uint by RailType where appropriate

This commit is contained in:
tron
2005-10-16 09:13:04 +00:00
parent ab657338ec
commit 66bf4f863d
13 changed files with 27 additions and 29 deletions

View File

@@ -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;