Run savegame events as myconnectindex instead of screenpeek

This doesn't really matter right now, but it's wrong.

git-svn-id: https://svn.eduke32.com/eduke32@7934 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2019-08-09 09:28:30 +00:00 committed by Christoph Oelckers
parent 41ff733fcd
commit 0a5cdea62a

View file

@ -820,7 +820,7 @@ int32_t G_SavePlayer(savebrief_t & sv, bool isAutoSave)
polymer_resetlights();
#endif
VM_OnEvent(EVENT_SAVEGAME, g_player[screenpeek].ps->i, screenpeek);
VM_OnEvent(EVENT_SAVEGAME, g_player[myconnectindex].ps->i, myconnectindex);
portableBackupSave(sv.path, sv.name, ud.last_stateless_volume, ud.last_stateless_level);
@ -847,7 +847,7 @@ int32_t G_SavePlayer(savebrief_t & sv, bool isAutoSave)
G_RestoreTimers();
ototalclock = totalclock;
VM_OnEvent(EVENT_POSTSAVEGAME, g_player[screenpeek].ps->i, screenpeek);
VM_OnEvent(EVENT_POSTSAVEGAME, g_player[myconnectindex].ps->i, myconnectindex);
return 0;