Changeset - r14823:60c9b3978fe5
[Not reviewed]
master
0 1 0
frosch - 15 years ago 2010-03-14 20:53:31
frosch@openttd.org
(svn r19424) -Codechange: Call command procs only via DoCommand().
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/group_cmd.cpp
Show inline comments
 
@@ -274,7 +274,7 @@ CommandCost CmdAddSharedVehicleGroup(Til
 

	
 
				/* For each shared vehicles add it to the group */
 
				for (Vehicle *v2 = v->FirstShared(); v2 != NULL; v2 = v2->NextShared()) {
 
					if (v2->group_id != id_g) CmdAddVehicleGroup(tile, flags, id_g, v2->index, text);
 
					if (v2->group_id != id_g) DoCommand(tile, id_g, v2->index, flags, CMD_ADD_VEHICLE_GROUP, text);
 
				}
 
			}
 
		}
 
@@ -313,7 +313,7 @@ CommandCost CmdRemoveAllVehiclesGroup(Ti
 
				if (v->group_id != old_g) continue;
 

	
 
				/* Add The Vehicle to the default group */
 
				CmdAddVehicleGroup(tile, flags, DEFAULT_GROUP, v->index, text);
 
				DoCommand(tile, DEFAULT_GROUP, v->index, flags, CMD_ADD_VEHICLE_GROUP, text);
 
			}
 
		}
 

	
0 comments (0 inline, 0 general)