From b60a1326bf3ea9b9e0235cf18cdcd964c758a8bf Mon Sep 17 00:00:00 2001 From: glx Date: Thu, 5 Jun 2008 20:54:52 +0000 Subject: (svn r13390) -Codechange: introduce usererror() for fatal but not openttd related errors. Now all error() will 'crash' openttd after showing the message in win32 releases (MSVC), creating a crash.log and crash.dmp (like the '!' hack used before). On the other hand, usererror() will just close the game. So use error() only when it can be helpful to debugging, else use usererror(). --- src/roadveh_cmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/roadveh_cmd.cpp') diff --git a/src/roadveh_cmd.cpp b/src/roadveh_cmd.cpp index 6f4e7cc29..35fc275d5 100644 --- a/src/roadveh_cmd.cpp +++ b/src/roadveh_cmd.cpp @@ -1468,7 +1468,7 @@ static bool IndividualRoadVehicleController(Vehicle *v, const Vehicle *prev) } if (dir == INVALID_TRACKDIR) { - if (!IsRoadVehFront(v)) error("!Disconnecting road vehicle."); + if (!IsRoadVehFront(v)) error("Disconnecting road vehicle."); v->cur_speed = 0; return false; } -- cgit v1.2.3-54-g00ecf