mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-17 21:25:40 +00:00
(svn r2412) - Fix: [ 1214948 ] building vehicles without depot crashes game. (Chris Huebsch)
This commit is contained in:
parent
e878e4d815
commit
c4b426ef8c
@ -1014,7 +1014,7 @@ static void PlayerAircraftWndProc(Window *w, WindowEvent *e)
|
|||||||
|
|
||||||
tile = _last_built_aircraft_depot_tile;
|
tile = _last_built_aircraft_depot_tile;
|
||||||
do {
|
do {
|
||||||
if (IsTileOwner(tile, _local_player) && IsAircraftHangarTile(tile)) {
|
if (IsAircraftHangarTile(tile) && IsTileOwner(tile, _local_player)) {
|
||||||
ShowAircraftDepotWindow(tile);
|
ShowAircraftDepotWindow(tile);
|
||||||
ShowBuildAircraftWindow(tile);
|
ShowBuildAircraftWindow(tile);
|
||||||
return;
|
return;
|
||||||
|
@ -892,7 +892,7 @@ static void PlayerRoadVehWndProc(Window *w, WindowEvent *e)
|
|||||||
|
|
||||||
tile = _last_built_road_depot_tile;
|
tile = _last_built_road_depot_tile;
|
||||||
do {
|
do {
|
||||||
if (IsTileOwner(tile, _local_player) && IsTileDepotType(tile, TRANSPORT_ROAD)) {
|
if (IsTileDepotType(tile, TRANSPORT_ROAD) && IsTileOwner(tile, _local_player)) {
|
||||||
ShowRoadDepotWindow(tile);
|
ShowRoadDepotWindow(tile);
|
||||||
ShowBuildRoadVehWindow(tile);
|
ShowBuildRoadVehWindow(tile);
|
||||||
return;
|
return;
|
||||||
|
@ -996,7 +996,7 @@ static void PlayerShipsWndProc(Window *w, WindowEvent *e)
|
|||||||
|
|
||||||
tile = _last_built_ship_depot_tile;
|
tile = _last_built_ship_depot_tile;
|
||||||
do {
|
do {
|
||||||
if (IsTileOwner(tile, _local_player) && IsTileDepotType(tile, TRANSPORT_WATER)) {
|
if (IsTileDepotType(tile, TRANSPORT_WATER) && IsTileOwner(tile, _local_player)) {
|
||||||
ShowShipDepotWindow(tile);
|
ShowShipDepotWindow(tile);
|
||||||
ShowBuildShipWindow(tile);
|
ShowBuildShipWindow(tile);
|
||||||
return;
|
return;
|
||||||
|
@ -1343,7 +1343,7 @@ static void PlayerTrainsWndProc(Window *w, WindowEvent *e)
|
|||||||
|
|
||||||
tile = _last_built_train_depot_tile;
|
tile = _last_built_train_depot_tile;
|
||||||
do {
|
do {
|
||||||
if (IsTileOwner(tile, _local_player) && IsTileDepotType(tile, TRANSPORT_RAIL)) {
|
if (IsTileDepotType(tile, TRANSPORT_RAIL) && IsTileOwner(tile, _local_player)) {
|
||||||
ShowTrainDepotWindow(tile);
|
ShowTrainDepotWindow(tile);
|
||||||
ShowBuildTrainWindow(tile);
|
ShowBuildTrainWindow(tile);
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user