mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2025-02-21 11:01:36 +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
a3d7029e2c
commit
5f9e3522a7
1 changed files with 9 additions and 3 deletions
|
@ -1794,8 +1794,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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -3014,7 +3017,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