Small fix for Authors Notes in multiplayer

Multiplayer support was causing all players to automatically submit authors notes. This is now fixed only the person submitting the authors notes counts.
This commit is contained in:
henk717 2021-08-22 15:54:35 +02:00
parent 09ec15c91b
commit a151e1a33a
1 changed files with 1 additions and 1 deletions

View File

@ -1406,7 +1406,7 @@ def togglememorymode():
vars.mode = "memory" vars.mode = "memory"
emit('from_server', {'cmd': 'memmode', 'data': 'true'}, broadcast=True) emit('from_server', {'cmd': 'memmode', 'data': 'true'}, broadcast=True)
emit('from_server', {'cmd': 'setinputtext', 'data': vars.memory}, broadcast=True) emit('from_server', {'cmd': 'setinputtext', 'data': vars.memory}, broadcast=True)
emit('from_server', {'cmd': 'setanote', 'data': vars.authornote}, broadcast=True) emit('from_server', {'cmd': 'setanote', 'data': vars.authornote})
elif(vars.mode == "memory"): elif(vars.mode == "memory"):
vars.mode = "play" vars.mode = "play"
emit('from_server', {'cmd': 'memmode', 'data': 'false'}, broadcast=True) emit('from_server', {'cmd': 'memmode', 'data': 'false'}, broadcast=True)