(svn r15374) -Codechange: remove a magic constant.

This commit is contained in:
rubidium
2009-02-06 15:39:34 +00:00
parent ef754b8b6d
commit 0cfc402823
3 changed files with 22 additions and 19 deletions

View File

@@ -27,6 +27,7 @@
#include "functions.h"
#include "effectvehicle_func.h"
#include "elrail_func.h"
#include "roadveh.h"
#include "table/sprites.h"
#include "table/strings.h"
@@ -1537,7 +1538,7 @@ static VehicleEnterTileStatus VehicleEnter_Road(Vehicle *v, TileIndex tile, int
case ROAD_TILE_DEPOT:
if (v->type == VEH_ROAD &&
v->u.road.frame == 11 &&
v->u.road.frame == RVC_DEPOT_STOP_FRAME &&
_roadveh_enter_depot_dir[GetRoadDepotDirection(tile)] == v->u.road.state) {
v->u.road.state = RVSB_IN_DEPOT;
v->vehstatus |= VS_HIDDEN;