- Fixed: DCajunMaster::End was missing a write barrier for getspawned. The
same problem in D_DoomMain. - Made bglobal a pointer because it was causing problems with the garbage collector. SVN r859 (trunk)
This commit is contained in:
parent
39940fe20a
commit
997533e0c8
22 changed files with 131 additions and 97 deletions
|
|
@ -43,9 +43,9 @@ CCMD (addbot)
|
|||
}
|
||||
|
||||
if (argv.argc() > 1)
|
||||
bglobal.SpawnBot (argv[1]);
|
||||
bglobal->SpawnBot (argv[1]);
|
||||
else
|
||||
bglobal.SpawnBot (NULL);
|
||||
bglobal->SpawnBot (NULL);
|
||||
}
|
||||
|
||||
void DCajunMaster::ClearPlayer (int i, bool keepTeam)
|
||||
|
|
@ -92,7 +92,7 @@ CCMD (freeze)
|
|||
|
||||
CCMD (listbots)
|
||||
{
|
||||
botinfo_t *thebot = bglobal.botinfo;
|
||||
botinfo_t *thebot = bglobal->botinfo;
|
||||
int count = 0;
|
||||
|
||||
while (thebot)
|
||||
|
|
@ -115,6 +115,9 @@ AT_GAME_SET(BotStuff)
|
|||
{
|
||||
AWeapon * w;
|
||||
AActor * a;
|
||||
|
||||
bglobal = new DCajunMaster;
|
||||
GC::WriteBarrier(bglobal);
|
||||
|
||||
w = (AWeapon*)GetDefaultByName ("Pistol");
|
||||
if (w != NULL)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue