(svn r16299) -Fix (r16242): don't use DoCommandP when the function can be called from another command

This commit is contained in:
smatz 2009-05-13 19:13:36 +00:00
parent 5bffbcdeca
commit 2bc5189ad5
1 changed files with 1 additions and 1 deletions

View File

@ -121,7 +121,7 @@ void ShowNewGrfVehicleError(EngineID engine, StringID part1, StringID part2, GRF
SetDParamStr(0, grfconfig->name);
SetDParam(1, engine);
ShowErrorMessage(part2, part1, 0, 0);
if (!_networking) DoCommandP(0, critical ? PM_PAUSED_ERROR : PM_PAUSED_NORMAL, 1, CMD_PAUSE);
if (!_networking) DoCommand(0, critical ? PM_PAUSED_ERROR : PM_PAUSED_NORMAL, 1, DC_EXEC, CMD_PAUSE);
}
/* debug output */