]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commit - qcsrc/common/triggers/target/speaker.qc
Merge branch 'terencehill/respawn_timer_fix' into 'master'
authorMario <zacjardine@y7mail.com>
Wed, 8 Jun 2016 08:38:41 +0000 (08:38 +0000)
committerMario <zacjardine@y7mail.com>
Wed, 8 Jun 2016 08:38:41 +0000 (08:38 +0000)
commit490a31934aa67cc7de5299a4d3f625d5271f8583
treeecc528710dc78571db051fb32f98e0b1e7304e39
parent3d4a324cc2e15c1eb99209674942506eb998e2ec
parentd3c9fbdc6504956f3952f5c9e2def108d6a86b1a
Merge branch 'terencehill/respawn_timer_fix' into 'master'

Respawn timer fix

Improve respawn timer when max respawn delay is higher than respawn delay

Example:
g_forced_respawn 1
g_respawn_delay_max 10
g_respawn_delay_small 7

* Current timer behaviour:

"You are dead, wait 10 seconds before respawning" (and counting down)
if you press the jump key after 4 seconds it changes to:
"Respawning in 6 seconds..."  (and counting down)
but you respawn when it shows:
"Respawning in 3 seconds..."

* New behaviour (fixed):

"You are dead, wait 7 seconds before respawning" (and counting down)
if you press the jump key after 4 seconds it changes to:
"Respawning in 3 seconds..."  (and counting down)
and you respawn when the countdown ends, as expected
if you let pass 7 seconds without pressing the jump key, it shows:
"Respawning in 3 seconds..." (and counting down)
and you respawn when the countdown ends, as expected

See merge request !319
qcsrc/server/cl_client.qc