Changeset - r12673:b1d9a3d92e89
[Not reviewed]
master
0 2 0
rubidium - 15 years ago 2009-08-09 19:06:35
rubidium@openttd.org
(svn r17138) -Fix: some MSVC 64 bits compiler warnings
2 files changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/saveload/waypoint_sl.cpp
Show inline comments
 
@@ -44,13 +44,13 @@ static void UpdateWaypointOrder(Order *o
 
{
 
	if (!o->IsType(OT_GOTO_WAYPOINT)) return;
 

	
 
	for (OldWaypoint *wp = _old_waypoints.Begin(); wp != _old_waypoints.End(); wp++) {
 
		if (wp->index != o->GetDestination()) continue;
 

	
 
		o->SetDestination(wp->new_index);
 
		o->SetDestination((DestinationID)wp->new_index);
 
		return;
 
	}
 
}
 

	
 
/**
 
 * Perform all steps to upgrade from the old waypoints to the new version
src/settings_gui.cpp
Show inline comments
 
@@ -612,13 +612,13 @@ public:
 

	
 
				this->timeout = 5;
 
				int32 val = (int32)ReadValue(GetVariableAddress(&this->opt_mod_temp, &sd->save), sd->save.conv);
 

	
 
				if (x >= 10) {
 
					/* Increase button clicked */
 
					val = min(val + sdb->interval, sdb->max);
 
					val = min(val + sdb->interval, (int32)sdb->max);
 
					this->clicked_increase = true;
 
				} else {
 
					/* Decrease button clicked */
 
					val -= sdb->interval;
 
					val = max(val, sdb->min);
 
					this->clicked_increase = false;
0 comments (0 inline, 0 general)