(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
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user