Skip to content

fix: don't spawn powerups immediately#57

Open
WofWca wants to merge 1 commit intoec-:masterfrom
WofWca:baseq3a-fix-powerup-immediate-spawn
Open

fix: don't spawn powerups immediately#57
WofWca wants to merge 1 commit intoec-:masterfrom
WofWca:baseq3a-fix-powerup-immediate-spawn

Conversation

@WofWca
Copy link
Contributor

@WofWca WofWca commented Nov 12, 2025

Closes #8.

The bug has been introduced in
2c65e57.
This commit basically brings back the code that was removed
as part of that one.

The intent of that commit was to spawn the powerups immediately
for warmup, but then spawn them as usual when the warmup ends,
in G_WarmupEnd.
However, it's not always that we get to execute G_WarmupEnd.
Namely, it doesn't get executed when g_warmup 0
or in single player matches.

The downside is, of course, that we no longer spawn the powerups
for warmup immediately.

So let's simply revert that change until a better solution is found.

I have tested this

  • in single player mode
  • with g_warmup 10
  • with g_warmup 0

Closes https://github.com/ec-/baseq3a/issues/8.

The bug has been introduced in
2c65e57.
This commit basically brings back the code that was removed
as part of that one.

The intent of that commit was to spawn the powerups immediately
for warmup, but then spawn them as usual when the warmup ends,
in `G_WarmupEnd`.
However, it's not always that we get to execute `G_WarmupEnd`.
Namely, it doesn't get executed when `g_warmup 0`
or in single player matches.

The downside is, of course, that we no longer spawn the powerups
for warmup immediately.

So let's simply revert that change until a better solution is found.
@WofWca WofWca force-pushed the baseq3a-fix-powerup-immediate-spawn branch from 8426dd7 to 7de0e0f Compare November 12, 2025 12:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Powerups spawn immediately if no warmup time is set.

1 participant