From 7bcc1efd8c36e1dfbd7eec894b59cb8eb476bdc9 Mon Sep 17 00:00:00 2001 From: Lee Salzman Date: Thu, 16 Nov 2006 21:13:33 +0000 Subject: [PATCH] *** empty log message *** git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@695 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/entities.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/src/entities.cpp b/source/src/entities.cpp index 1b1774a6..ac02a565 100644 --- a/source/src/entities.cpp +++ b/source/src/entities.cpp @@ -60,7 +60,7 @@ void renderentities() { if(!e.spawned) continue; if(e.typeI_AKIMBO) continue; - renderent(e, entmdlnames[e.type-I_CLIPS], (float)(1+sinf(lastmillis/100.0+e.x+e.y)/20), lastmillis/10.0f); + renderent(e, entmdlnames[e.type-I_CLIPS], (float)(1+sinf(lastmillis/100.0f+e.x+e.y)/20), lastmillis/10.0f); } else switch(e.attr2) { @@ -260,7 +260,7 @@ void resetspawns() else if(m_pistol && e.type==I_AMMO) e.type = I_CLIPS; } }; -void setspawn(int i, bool on) { if(i=0) ents[i].spawned = on; }; +void setspawn(int i, bool on) { if(ents.inrange(i)) ents[i].spawned = on; }; void equip(playerent *d) {