mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-02 04:13:26 +00:00
(svn r16299) -Fix (r16242): don't use DoCommandP when the function can be called from another command
This commit is contained in:
parent
5bffbcdeca
commit
2bc5189ad5
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user