Changeset - r1063:64988ee601b9
[Not reviewed]
master
0 1 0
tron - 19 years ago 2005-01-19 05:55:30
tron@openttd.org
(svn r1564) ISO C90 forbids mixed declarations and code (bad bjarni, no cookie)
1 file changed with 3 insertions and 1 deletions:
0 comments (0 inline, 0 general)
vehicle.c
Show inline comments
 
@@ -1464,8 +1464,10 @@ int32 CmdReplaceVehicle(int x, int y, ui
 
				
 
				if ( rvi2->flags & RVI_MULTIHEAD && !(rvi->flags & RVI_MULTIHEAD) &&  v->index == first->index) {
 
					if (old_engine_type == u->engine_type ) {
 
						Vehicle *w;
 

	
 
						u = GetLastVehicleInChain(v);
 
						Vehicle *w = GetPrevVehicleInChain(u);
 
						w = GetPrevVehicleInChain(u);
 
						w->next = NULL;
 
						DeleteVehicle(u);
 
					}
0 comments (0 inline, 0 general)