mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-11 13:10:45 +00:00
(svn r17138) -Fix: some MSVC 64 bits compiler warnings
This commit is contained in:
parent
02d2afcb19
commit
dcea681cbb
@ -47,7 +47,7 @@ static void UpdateWaypointOrder(Order *o)
|
|||||||
for (OldWaypoint *wp = _old_waypoints.Begin(); wp != _old_waypoints.End(); wp++) {
|
for (OldWaypoint *wp = _old_waypoints.Begin(); wp != _old_waypoints.End(); wp++) {
|
||||||
if (wp->index != o->GetDestination()) continue;
|
if (wp->index != o->GetDestination()) continue;
|
||||||
|
|
||||||
o->SetDestination(wp->new_index);
|
o->SetDestination((DestinationID)wp->new_index);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -615,7 +615,7 @@ public:
|
|||||||
|
|
||||||
if (x >= 10) {
|
if (x >= 10) {
|
||||||
/* Increase button clicked */
|
/* Increase button clicked */
|
||||||
val = min(val + sdb->interval, sdb->max);
|
val = min(val + sdb->interval, (int32)sdb->max);
|
||||||
this->clicked_increase = true;
|
this->clicked_increase = true;
|
||||||
} else {
|
} else {
|
||||||
/* Decrease button clicked */
|
/* Decrease button clicked */
|
||||||
|
Loading…
Reference in New Issue
Block a user