mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-12-03 01:13:22 +00:00
autosave and make screenshot only if there is no other game actions (#1126)
In-game fix for this bug: https://forum.zdoom.org/viewtopic.php?f=43&t=59889&start=60#p1121698 because it may be also caused by other scripts or even manually.
This commit is contained in:
parent
d2a9de0012
commit
83ffcbf692
1 changed files with 9 additions and 3 deletions
|
@ -1810,10 +1810,13 @@ void G_DoPlayerPop(int playernum)
|
||||||
}
|
}
|
||||||
|
|
||||||
void G_ScreenShot (const char *filename)
|
void G_ScreenShot (const char *filename)
|
||||||
|
{
|
||||||
|
if (gameaction == ga_nothing)
|
||||||
{
|
{
|
||||||
shotfile = filename;
|
shotfile = filename;
|
||||||
gameaction = ga_screenshot;
|
gameaction = ga_screenshot;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -3071,9 +3074,12 @@ DEFINE_ACTION_FUNCTION(FLevelLocals, MakeScreenShot)
|
||||||
}
|
}
|
||||||
|
|
||||||
void G_MakeAutoSave()
|
void G_MakeAutoSave()
|
||||||
|
{
|
||||||
|
if (gameaction == ga_nothing)
|
||||||
{
|
{
|
||||||
gameaction = ga_autosave;
|
gameaction = ga_autosave;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
DEFINE_ACTION_FUNCTION(FLevelLocals, MakeAutoSave)
|
DEFINE_ACTION_FUNCTION(FLevelLocals, MakeAutoSave)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue