Allow regenerating random story using Retry button

Commit b55e5a8e0b770d216339acf6346d18a3e7e8140c removed this feature, so
this commit adds it back.
This commit is contained in:
Gnome Ann 2022-03-23 13:39:46 -04:00
parent 38d78d10db
commit 4832dd6f37

View File

@ -2862,6 +2862,9 @@ def actionretry(data):
if(vars.noai):
emit('from_server', {'cmd': 'errmsg', 'data': "Retry function unavailable in Read Only mode."})
return
if(vars.recentrng is not None):
randomGameRequest(vars.recentrng, memory=vars.recentrngm)
return
if actionback():
actionsubmit("", actionmode=vars.actionmode, force_submit=True)
send_debug()