Changeset - r2921:95ee5bab4a46
[Not reviewed]
master
0 1 0
truelight - 18 years ago 2006-01-29 20:06:26
truelight@openttd.org
(svn r3477) -Fix: a fix that fixed the last commit.. I shouldn't be committing here :)
1 file changed with 1 insertions and 2 deletions:
0 comments (0 inline, 0 general)
order_gui.c
Show inline comments
 
@@ -188,14 +188,12 @@ static void DrawOrdersWindow(Window *w)
 

	
 
static Order GetOrderCmdFromTile(const Vehicle *v, TileIndex tile)
 
{
 
	Order order;
 
	int st_index;
 

	
 
	order.station = INVALID_STATION;
 

	
 
	// check depot first
 
	if (_patches.gotodepot) {
 
		switch (GetTileType(tile)) {
 
		case MP_RAILWAY:
 
			if (v->type == VEH_Train && IsTileOwner(tile, _local_player)) {
 
				if ((_m[tile].m5&0xFC)==0xC0) {
 
@@ -275,12 +273,13 @@ static Order GetOrderCmdFromTile(const V
 
		}
 
	}
 

	
 
	// not found
 
	order.type = OT_NOTHING;
 
	order.flags = 0;
 
	order.station = INVALID_STATION;
 
	return order;
 
}
 

	
 
static bool HandleOrderVehClick(const Vehicle* v, const Vehicle* u, Window* w)
 
{
 
	if (u->type != v->type) return false;
0 comments (0 inline, 0 general)