mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Simpler solution to #1225: If a retry flag occurs in a demo, stop playback immediately!
This commit is contained in:
parent
de651b6d6c
commit
c7503a492d
1 changed files with 9 additions and 3 deletions
12
src/g_game.c
12
src/g_game.c
|
|
@ -1791,11 +1791,17 @@ void G_Ticker(boolean run)
|
||||||
|
|
||||||
P_MapStart();
|
P_MapStart();
|
||||||
|
|
||||||
if (gamestate == GS_LEVEL)
|
if (gamestate == GS_LEVEL && G_GetRetryFlag())
|
||||||
{
|
{
|
||||||
// Or, alternatively, retry.
|
if (demo.playback == true)
|
||||||
if (G_GetRetryFlag())
|
|
||||||
{
|
{
|
||||||
|
// Stop playback!!
|
||||||
|
G_ClearRetryFlag();
|
||||||
|
G_CheckDemoStatus();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// Or, alternatively, retry.
|
||||||
for (i = 0; i < MAXPLAYERS; i++)
|
for (i = 0; i < MAXPLAYERS; i++)
|
||||||
{
|
{
|
||||||
if (playeringame[i])
|
if (playeringame[i])
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue