Changeset - r7563:2d3c0afbcaf3
[Not reviewed]
master
0 2 0
glx - 17 years ago 2007-09-11 17:42:46
glx@openttd.org
(svn r11088) -Fix (r11063, r11067): MSVC warning C4804: '>' : unsafe use of type 'bool' in operation
2 files changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/economy.cpp
Show inline comments
 
@@ -1696,7 +1696,7 @@ static void LoadUnloadVehicle(Vehicle *v
 
	 * if _patches.loading_indicators == 1, _local_player must be the owner or must be a spectator to show ind., so 1 > 0
 
	 * if _patches.loading_indicators == 0, do not display indicators ... 0 is never greater than anything
 
	 */
 
	if (_game_mode != GM_MENU && (_patches.loading_indicators > (v->owner != _local_player && _local_player != PLAYER_SPECTATOR))) {
 
	if (_game_mode != GM_MENU && (_patches.loading_indicators > (uint)(v->owner != _local_player && _local_player != PLAYER_SPECTATOR))) {
 
		StringID percent_up_down = STR_NULL;
 
		int percent = CalcPercentVehicleFilled(v, &percent_up_down);
 
		if (v->fill_percent_te_id == INVALID_TE_ID) {
src/vehicle_gui.cpp
Show inline comments
 
@@ -1245,7 +1245,7 @@ void ShowVehicleListWindow(PlayerID play
 
	 * if _ctrl_pressed, do the opposite action (Advanced list x Normal list)
 
	 */
 

	
 
	if ((_patches.advanced_vehicle_list > (player != _local_player)) != _ctrl_pressed) {
 
	if ((_patches.advanced_vehicle_list > (uint)(player != _local_player)) != _ctrl_pressed) {
 
		ShowPlayerGroup(player, vehicle_type);
 
	} else {
 
		ShowVehicleListWindowLocal(player, VLW_STANDARD, vehicle_type, 0);
0 comments (0 inline, 0 general)