changeset 11899:fc1af9d26d2c draft

(svn r16299) -Fix (r16242): don't use DoCommandP when the function can be called from another command
author smatz <smatz@openttd.org>
date Wed, 13 May 2009 19:13:36 +0000
parents cd0f14c0b065
children 46d45a7511f9
files src/vehicle.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/vehicle.cpp
+++ b/src/vehicle.cpp
@@ -121,7 +121,7 @@
 		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 */