mirror of
https://github.com/nzp-team/quakec.git
synced 2025-03-21 10:21:47 +00:00
SERVER: Make getFreeZombieEnt inline, remove pointless param
This commit is contained in:
parent
93d2e7db1a
commit
e63f68e897
2 changed files with 7 additions and 6 deletions
|
@ -191,7 +191,7 @@ void(entity where) spawn_a_dogB =
|
|||
{
|
||||
local entity sdog;//USED FOR WHAT TO SPAWN
|
||||
|
||||
sdog = getFreeZombieEnt(self);
|
||||
sdog = getFreeZombieEnt();
|
||||
if(sdog == world)
|
||||
{
|
||||
return;
|
||||
|
@ -308,7 +308,7 @@ float() spawn_a_dogA =
|
|||
|
||||
FAIL = false;
|
||||
pcount = 0;
|
||||
szombie = getFreeZombieEnt(self);
|
||||
szombie = getFreeZombieEnt();
|
||||
if(szombie == world || dogCount >= (2 * (player_count + 1)))
|
||||
{
|
||||
return 0;
|
||||
|
|
|
@ -1439,13 +1439,14 @@ void() set_z_health =
|
|||
}
|
||||
};
|
||||
|
||||
entity(entity me) getFreeZombieEnt =
|
||||
inline entity() getFreeZombieEnt =
|
||||
{
|
||||
local entity who;
|
||||
entity who;
|
||||
who = find(world,classname,"freeZombieEntity");
|
||||
|
||||
return who;
|
||||
};
|
||||
|
||||
float() spawn_a_zombieA =
|
||||
{
|
||||
//dprint("Spawn_a_zombieA \n");
|
||||
|
@ -1457,7 +1458,7 @@ float() spawn_a_zombieA =
|
|||
pcount = 0;
|
||||
|
||||
FAIL = false;
|
||||
szombie = getFreeZombieEnt(self);
|
||||
szombie = getFreeZombieEnt();
|
||||
if(szombie == world || zombie_spawn_timer > time)
|
||||
{
|
||||
//bprint(PRINT_HIGH, "STOPPED AT A\n");
|
||||
|
@ -1639,7 +1640,7 @@ void(entity where) spawn_a_zombieB =
|
|||
local entity szombie;//USED FOR WHAT TO SPAWN
|
||||
//szombie = spawn();
|
||||
|
||||
szombie = getFreeZombieEnt(self);
|
||||
szombie = getFreeZombieEnt();
|
||||
if(szombie == world || zombie_spawn_timer > time)
|
||||
{
|
||||
//bprint(PRINT_HIGH, "STOPPED AT B\n");
|
||||
|
|
Loading…
Reference in a new issue