From 2f703babbbd1579b495d76548a76ecc0e2907564 Mon Sep 17 00:00:00 2001 From: Jordy Ruiz Date: Sat, 19 Jan 2019 10:12:32 +0100 Subject: [PATCH] Fix automapper randomization --- src/game/editor/auto_map.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/editor/auto_map.h b/src/game/editor/auto_map.h index 1d6153362..e13cd7510 100644 --- a/src/game/editor/auto_map.h +++ b/src/game/editor/auto_map.h @@ -37,7 +37,7 @@ public: static bool Random(int Value) { - return (((random_int() + Value) % 2) == 1); + return (random_int() % Value) == 0; } static const char *GetTypeName(int Type)