From 5df637f1f9db44a2eb96b19793146765e281ca9b Mon Sep 17 00:00:00 2001 From: driAn Date: Mon, 23 Apr 2007 20:27:47 +0000 Subject: [PATCH] nade fix git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@969 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/weapon.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source/src/weapon.cpp b/source/src/weapon.cpp index 4684ef97..2be8bf89 100644 --- a/source/src/weapon.cpp +++ b/source/src/weapon.cpp @@ -377,7 +377,7 @@ void movebounceents() void clearbounceents() { - loopv(bounceents) if(bounceents[i]) { delete bounceents[i]; bounceents.remove(i); } + loopv(bounceents) if(bounceents[i]) { delete bounceents[i]; bounceents.remove(i--); } } void renderbounceents() @@ -458,7 +458,6 @@ void throw_nade(playerent *d, const vec &vel, bounceent *p) throwvel.mul(2*d->radius); p->vel = vel; - //p->o = d->o; p->o.add(throwvel); p->o.mul(1.5f); p->o.add(d->o);