From e36dba227b3ef5414757282661a8108d3a2bc9f6 Mon Sep 17 00:00:00 2001 From: skidd13 Date: Sun, 25 Nov 2007 15:35:25 +0000 Subject: (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 --- 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 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; } -- cgit v1.2.3-70-g09d2