src/train_cmd.cpp
branchcustombridgeheads
changeset 5651 335d9bd345b0
parent 5650 aefc131bf5ce
equal deleted inserted replaced
5650:aefc131bf5ce 5651:335d9bd345b0
  3057 				continue;
  3057 				continue;
  3058 			}
  3058 			}
  3059 			/* left tunnel/bridge wormhole */
  3059 			/* left tunnel/bridge wormhole */
  3060 			dir = v->direction;
  3060 			dir = v->direction;
  3061 			enterdir = INVALID_DIAGDIR;
  3061 			enterdir = INVALID_DIAGDIR;
       
  3062 			entering_new_tile = true;
  3062 			if (IsBridgeTile(gp.new_tile) && res & 0x4) {
  3063 			if (IsBridgeTile(gp.new_tile) && res & 0x4) {
  3063 				/* ok we have just left the bridge (because the status was "onbridge" before and we got
  3064 				/* ok we have just left the bridge (because the status was "onbridge" before and we got
  3064 				a return value of 4 from VehicleEnterTile. we know the enterdir from the bridge ramp
  3065 				a return value of 4 from VehicleEnterTile. we know the enterdir from the bridge ramp
  3065 				direction, and act as if we entered the tile normally (hence the goto) */
  3066 				direction, and act as if we entered the tile normally (hence the goto) */
  3066 				dir = v->direction;
  3067 				dir = v->direction;