- use an array to store the buttons.

This puts a lot less knowledge about the game's features into the low level code.
This commit is contained in:
Christoph Oelckers 2020-04-11 18:09:51 +02:00
commit 8dacdf2951
13 changed files with 405 additions and 251 deletions

View file

@ -1053,7 +1053,7 @@ void G_DoLoadLevel(const FString &nextmapname, int position, bool autosave, bool
gameaction = ga_nothing;
// clear cmd building stuff
ResetButtonStates();
buttonMap.ResetButtonStates();
SendItemUse = nullptr;
SendItemDrop = nullptr;