Skip to content

Restored Zandronum-specific deathmatch spawning behaviour + minor fix for bots not joining duels correctly

A few months, I refactored and made some changes to the player spawning behaviour, particularly ea8604d448e9 which changed the deathmatch spawning behaviour to match GZDoom 1.8.6. However, it recently came to my attention from another player's feedback that this behaviour might not be so desirable after all because now, sv_spawnfarthest doesn't apply at the start of a new level or the end of a countdown. Thus, I restored the Zandronum-specific spawning behaviour (i.e. try spawning a player as far away as possible first, and if that doesn't work, then spawn them at a random spot), while maintaining the same code structure from GZDoom to reduce the amount of delta. The same player already tested the changes and confirmed that sv_spawnfarthest works better now.

On a similar note, they also noticed an issue in duel's pregame (i.e. before or during the countdown), where if a bot spawned in for the first time as the second player, sv_spawnfarthest didn't seem to work properly either. I fixed this issue too, as it was a problem with the bots initially being prevented from joining a duel game when they should've.

Merge request reports

Loading