no message

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@410 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
driAn
2006-09-18 19:32:46 +00:00
parent d57c848c0d
commit 93ae9f3231
5 changed files with 14 additions and 14 deletions
+3 -2
View File
@@ -255,11 +255,12 @@ void putitems(uchar *&p) // puts items in network stream and also spa
void resetspawns()
{
loopv(ents) ents[i].spawned = false;
if(m_noitemsnade)
if(m_noitemsnade || m_pistol)
loopv(ents)
{
entity &e = ents[i];
if(e.type == I_CLIPS || e.type == I_AMMO) e.type = I_GRENADE;
if(m_noitemsnade && (e.type == I_CLIPS || e.type == I_AMMO)) e.type = I_GRENADE;
else if(m_pistol && e.type==I_AMMO) e.type = I_CLIPS;
}
};
void setspawn(int i, bool on) { if(i<ents.length() && i>=0) ents[i].spawned = on; };