From 0a78af4bf8fe0d6ad05d992719524f4e688d4c9c Mon Sep 17 00:00:00 2001 From: Anders Jenbo Date: Wed, 6 Sep 2023 16:48:29 +0200 Subject: [PATCH] Show save notification for exactly 1 sec --- Source/gamemenu.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/gamemenu.cpp b/Source/gamemenu.cpp index 3237c414a..940d7cab1 100644 --- a/Source/gamemenu.cpp +++ b/Source/gamemenu.cpp @@ -330,9 +330,10 @@ void gamemenu_save_game(bool /*bActivate*/) InitDiabloMsg(EMSG_SAVING); RedrawEverything(); DrawAndBlit(); + uint32_t currentTime = SDL_GetTicks(); SaveGame(); ClrDiabloMsg(); - InitDiabloMsg(EMSG_GAME_SAVED, 1000); + InitDiabloMsg(EMSG_GAME_SAVED, currentTime + 1000 - SDL_GetTicks()); RedrawEverything(); NewCursor(CURSOR_HAND); if (CornerStone.activated) {