Changeset - r16415:aa056fa4035a
[Not reviewed]
master
0 1 0
rubidium - 14 years ago 2010-11-10 23:16:28
rubidium@openttd.org
(svn r21141) -Codechange: Use the new 'frame' variable for the bridge entry code as well (Hirundo)
1 file changed with 2 insertions and 7 deletions:
0 comments (0 inline, 0 general)
src/tunnelbridge_cmd.cpp
Show inline comments
 
@@ -1592,13 +1592,8 @@ static VehicleEnterTileStatus VehicleEnt
 
		}
 

	
 
		if (vdir == dir) {
 
			switch (dir) {
 
				default: NOT_REACHED();
 
				case DIAGDIR_NE: if ((x & 0xF) != 0)             return VETSB_CONTINUE; break;
 
				case DIAGDIR_SE: if ((y & 0xF) != TILE_SIZE - 1) return VETSB_CONTINUE; break;
 
				case DIAGDIR_SW: if ((x & 0xF) != TILE_SIZE - 1) return VETSB_CONTINUE; break;
 
				case DIAGDIR_NW: if ((y & 0xF) != 0)             return VETSB_CONTINUE; break;
 
			}
 
			/* Vehicle enters bridge at the last frame inside this tile. */
 
			if (frame != TILE_SIZE - 1) return VETSB_CONTINUE;
 
			switch (v->type) {
 
				case VEH_TRAIN: {
 
					Train *t = Train::From(v);
0 comments (0 inline, 0 general)