From 30ed9eba7b16864a42c503325d11b10ae7aec09c Mon Sep 17 00:00:00 2001 From: Lucas GAUTHERON Date: Thu, 27 Jun 2013 22:33:05 +0000 Subject: [PATCH] better looking bullet holes distribution with shotgun git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7503 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/weapon.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/source/src/weapon.cpp b/source/src/weapon.cpp index 214b9d61..f2369fbe 100644 --- a/source/src/weapon.cpp +++ b/source/src/weapon.cpp @@ -1300,14 +1300,7 @@ void shotgun::attackfx(const vec &from, const vec &to, int millis) loopi(SGRAYS) particle_splash(PART_SPARK, 5, 200, sgr[i].rv); if(addbullethole(owner, from, to)) - { - loopk(3) - { - int holes = 1+rnd(3); - loopi(holes) addbullethole(owner, from, sgr[k*SGRAYS+i].rv, 0, false); - } - - } + loopk(3) loopi(3) addbullethole(owner, from, sgr[k*SGRAYS+i*SGRAYS/3].rv, 0, false); adddynlight(owner, from, 4, 100, 50, 96, 80, 64); attacksound(); }