--- a/src/aircraft_cmd.cpp Thu Apr 24 12:15:24 2008 +0000
+++ b/src/aircraft_cmd.cpp Thu Apr 24 12:32:37 2008 +0000
@@ -2150,7 +2150,7 @@
if (v->breakdown_ctr <= 2) {
HandleBrokenAircraft(v);
} else {
- v->breakdown_ctr--;
+ if (!v->current_order.type == OT_LOADING) v->breakdown_ctr--;
}
}
--- a/src/news_gui.cpp Thu Apr 24 12:15:24 2008 +0000
+++ b/src/news_gui.cpp Thu Apr 24 12:32:37 2008 +0000
@@ -1022,6 +1022,7 @@
if (_total_news == 0) {
assert(_latest_news == _oldest_news);
_latest_news = INVALID_NEWS;
+ _current_news = INVALID_NEWS;
}
/* Since we only imitate a FIFO removing an arbitrary element does need
--- a/src/roadveh_cmd.cpp Thu Apr 24 12:15:24 2008 +0000
+++ b/src/roadveh_cmd.cpp Thu Apr 24 12:32:37 2008 +0000
@@ -790,7 +790,8 @@
if (order->type == v->current_order.type &&
order->flags == v->current_order.flags &&
- order->dest == v->current_order.dest) {
+ order->dest == v->current_order.dest &&
+ v->dest_tile != 0) {
return;
}
@@ -1940,7 +1941,7 @@
HandleBrokenRoadVeh(v);
return;
}
- v->breakdown_ctr--;
+ if (!v->current_order.type == OT_LOADING) v->breakdown_ctr--;
}
if (v->vehstatus & VS_STOPPED) return;
--- a/src/ship_cmd.cpp Thu Apr 24 12:15:24 2008 +0000
+++ b/src/ship_cmd.cpp Thu Apr 24 12:32:37 2008 +0000
@@ -646,7 +646,7 @@
HandleBrokenShip(v);
return;
}
- v->breakdown_ctr--;
+ if (!v->current_order.type == OT_LOADING) v->breakdown_ctr--;
}
if (v->vehstatus & VS_STOPPED) return;
--- a/src/train_cmd.cpp Thu Apr 24 12:15:24 2008 +0000
+++ b/src/train_cmd.cpp Thu Apr 24 12:32:37 2008 +0000
@@ -3570,7 +3570,7 @@
HandleBrokenTrain(v);
return;
}
- v->breakdown_ctr--;
+ if (!v->current_order.type == OT_LOADING) v->breakdown_ctr--;
}
if (HasBit(v->u.rail.flags, VRF_REVERSING) && v->cur_speed == 0) {
--- a/src/video/cocoa/wnd_quartz.mm Thu Apr 24 12:15:24 2008 +0000
+++ b/src/video/cocoa/wnd_quartz.mm Thu Apr 24 12:32:37 2008 +0000
@@ -175,7 +175,8 @@
CMCloseProfile(sysProfile);
}
- assert(colorSpace != NULL);
+ if (colorSpace == NULL)
+ error("Could not get system colour space. You might need to recalibrate your monitor.");
}
return colorSpace;