Browse Source

Show save notification for exactly 1 sec

pull/6577/head
Anders Jenbo 3 years ago
parent
commit
0a78af4bf8
  1. 3
      Source/gamemenu.cpp

3
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) {

Loading…
Cancel
Save