mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-11 07:12:16 +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
|
@ -1811,8 +1811,11 @@ void G_DoPlayerPop(int playernum)
|
|||
|
||||
void G_ScreenShot (const char *filename)
|
||||
{
|
||||
shotfile = filename;
|
||||
gameaction = ga_screenshot;
|
||||
if (gameaction == ga_nothing)
|
||||
{
|
||||
shotfile = filename;
|
||||
gameaction = ga_screenshot;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -3072,7 +3075,10 @@ DEFINE_ACTION_FUNCTION(FLevelLocals, MakeScreenShot)
|
|||
|
||||
void G_MakeAutoSave()
|
||||
{
|
||||
gameaction = ga_autosave;
|
||||
if (gameaction == ga_nothing)
|
||||
{
|
||||
gameaction = ga_autosave;
|
||||
}
|
||||
}
|
||||
|
||||
DEFINE_ACTION_FUNCTION(FLevelLocals, MakeAutoSave)
|
||||
|
|
Loading…
Reference in a new issue