rail_gui.c
changeset 1782 48749e4c2dc6
parent 1781 5e2fef482637
child 1884 804ff5f94ed0
equal deleted inserted replaced
1781:5e2fef482637 1782:48749e4c2dc6
   119 }
   119 }
   120 
   120 
   121 static void PlaceRail_Waypoint(uint tile)
   121 static void PlaceRail_Waypoint(uint tile)
   122 {
   122 {
   123 	if (!_remove_button_clicked) {
   123 	if (!_remove_button_clicked) {
   124 		DoCommandP(tile, _waypoint_count > 0 ? (0x100 + _cur_waypoint_type) : 0, 0, CcPlaySound1E, CMD_BUILD_TRAIN_WAYPOINT | CMD_MSG(STR_CANT_BUILD_TRAIN_WAYPOINT));
   124 		DoCommandP(tile, (_waypoint_count > 0) ? (0x100 + _cur_waypoint_type) : 0, 0, CcPlaySound1E, CMD_BUILD_TRAIN_WAYPOINT | CMD_MSG(STR_CANT_BUILD_TRAIN_WAYPOINT));
   125 	} else {
   125 	} else {
   126 		DoCommandP(tile, 0, 0, CcPlaySound1E, CMD_REMOVE_TRAIN_WAYPOINT | CMD_MSG(STR_CANT_REMOVE_TRAIN_WAYPOINT));
   126 		DoCommandP(tile, 0, 0, CcPlaySound1E, CMD_REMOVE_TRAIN_WAYPOINT | CMD_MSG(STR_CANT_REMOVE_TRAIN_WAYPOINT));
   127 	}
   127 	}
   128 }
   128 }
   129 
   129