mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2025-02-01 05:30:58 +00:00
Fix mapbug in lab.bsp: monstercount is off by two on medium skill.
In lab.bsp near the commanders head two parasites spawn in an hidden place in the ceiling. On hard difficulty the box cracks open, exposing the parasites. On medium skill it doesn't. Work around that by lowering the monster count by 2. Closes #668.
This commit is contained in:
parent
4c16fbe6dc
commit
69f029e236
1 changed files with 12 additions and 0 deletions
|
@ -586,6 +586,7 @@ SpawnEntities(const char *mapname, char *entities, const char *spawnpoint)
|
|||
float skill_level;
|
||||
static qboolean monster_count_city3 = false;
|
||||
static qboolean monster_count_cool1 = false;
|
||||
static qboolean monster_count_lab = false;
|
||||
|
||||
if (!mapname || !entities || !spawnpoint)
|
||||
{
|
||||
|
@ -689,6 +690,17 @@ SpawnEntities(const char *mapname, char *entities, const char *spawnpoint)
|
|||
monster_count_cool1 = true;
|
||||
}
|
||||
|
||||
/*
|
||||
* Nearly the same problem exists in lab.bsp.
|
||||
* On medium skill two parasites are spawned
|
||||
* in a hidden place that never triggers.
|
||||
*/
|
||||
if ((skill->value == 1) && !Q_stricmp(level.mapname, "lab") && !monster_count_lab)
|
||||
{
|
||||
level.total_monsters = level.total_monsters - 2;
|
||||
monster_count_lab = true;
|
||||
}
|
||||
|
||||
/* remove things (except the world) from
|
||||
different skill levels or deathmatch */
|
||||
if (ent != g_edicts)
|
||||
|
|
Loading…
Reference in a new issue