fix arenamode pickups just before end-of-round locally (sanity check please)

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5266 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
flowtron
2010-07-02 17:49:57 +00:00
parent 94dc526837
commit 229cc9a378
3 changed files with 4 additions and 3 deletions
+1
View File
@@ -551,6 +551,7 @@ void parsemessages(int cn, playerent *d, ucharbuf &p)
arenaintermission = 0;
if(m_arena && !localwrongmap)
{
spawnallitems(true); // fix any items picked up just before end of last round
closemenu(NULL);
conoutf(_("new round starting... fight!"));
hudeditf(HUDMSG_TIMER, "FIGHT!");
+2 -2
View File
@@ -285,12 +285,12 @@ void checkitems(playerent *d)
}
}
void spawnallitems() // spawns items locally
void spawnallitems(bool is_arena) // spawns items locally
{
loopv(ents) if(ents[i].fitsmode(gamemode) || (multiplayer(false) && gamespeed!=100 && (i=-1)))
{
ents[i].spawned = true;
ents[i].twice = false;
if(!is_arena) ents[i].twice = false;
ents[i].lastmillis = lastmillis;
}
}
+1 -1
View File
@@ -644,7 +644,7 @@ extern void checkakimbo();
extern struct projectile *newprojectile(vec &from, vec &to, float speed, bool local, playerent *owner, int gun, int id = lastmillis);
// entities
extern void spawnallitems();
extern void spawnallitems(bool is_arena = false);
extern void pickupeffects(int n, playerent *d);
extern void renderentities();
extern void rendermapmodels();