(svn r8715) -Codechange/cleanup: replace magic numbers related to state of road vehicles with enums. Original patch by mart3p.

This commit is contained in:
rubidium
2007-02-13 22:27:27 +00:00
parent 86a4b5e169
commit 154dff9873
6 changed files with 82 additions and 38 deletions

View File

@@ -1458,7 +1458,7 @@ bool AfterLoadGame(void)
if (v->type == VEH_Train) {
v->u.rail.track = TRACK_BIT_WORMHOLE;
} else {
v->u.road.state = 0xFF;
v->u.road.state = RVSB_WORMHOLE;
}
}
}