summaryrefslogtreecommitdiff
path: root/src/roadveh_cmd.cpp
diff options
context:
space:
mode:
authorskidd13 <skidd13@openttd.org>2007-11-25 15:35:25 +0000
committerskidd13 <skidd13@openttd.org>2007-11-25 15:35:25 +0000
commite36dba227b3ef5414757282661a8108d3a2bc9f6 (patch)
tree169a43d7faea93613e95fcd0c3221376b8fbfc11 /src/roadveh_cmd.cpp
parente3092f679177eda2ecfe5dcf05cd565cbe62c3fa (diff)
downloadopenttd-e36dba227b3ef5414757282661a8108d3a2bc9f6.tar.xz
(svn r11523) -Codechange: Move the CHANCE macros to core/random_func.cpp cause they depend on Random()
-Codechange: Convert the CHANCE macros to functions and rename them fitting to the naming style
Diffstat (limited to 'src/roadveh_cmd.cpp')
-rw-r--r--src/roadveh_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/roadveh_cmd.cpp b/src/roadveh_cmd.cpp
index 2a2aac58b..0da918426 100644
--- a/src/roadveh_cmd.cpp
+++ b/src/roadveh_cmd.cpp
@@ -1989,7 +1989,7 @@ static void CheckIfRoadVehNeedsService(Vehicle *v)
if (v->current_order.type == OT_GOTO_DEPOT &&
v->current_order.flags & OF_NON_STOP &&
- !CHANCE16(1, 20)) {
+ !Chance16(1, 20)) {
return;
}