From 90450ee16ed371c6b614f39efd6dac0647a1438d Mon Sep 17 00:00:00 2001 From: onpon4 Date: Mon, 28 Nov 2016 15:35:26 -0500 Subject: [PATCH] Small code cleanup. --- src/bullet.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/bullet.cpp b/src/bullet.cpp index 7e7a8ea..0adb1e7 100644 --- a/src/bullet.cpp +++ b/src/bullet.cpp @@ -164,9 +164,7 @@ Object *bullet_getTarget(Object *bullet) if (bullet->owner->flags & FL_WEAPCO) { - i = (rand() % 10); - - if (i < 1) + if (CHANCE(0.1)) return &player; }