Browse Source

Remove unused LastMouseButtonTime

pull/2474/head
obligaron 5 years ago committed by Anders Jenbo
parent
commit
fba534de0a
  1. 3
      Source/diablo.cpp
  2. 1
      Source/diablo.h

3
Source/diablo.cpp

@ -121,7 +121,6 @@ QuickMessage QuickMessages[QUICK_MESSAGE_OPTIONS] = {
/** This and the following mouse variables are for handling in-game click-and-hold actions */
MouseActionType LastMouseButtonAction = MouseActionType::None;
uint32_t LastMouseButtonTime = 0;
// Controller support: Actions to run after updating the cursor state.
// Defined in SourceX/controls/plctrls.cpp.
@ -288,7 +287,6 @@ void LeftMouseCmd(bool bShift)
void LeftMouseDown(int wParam)
{
LastMouseButtonAction = MouseActionType::None;
LastMouseButtonTime = SDL_GetTicks();
if (gmenu_left_mouse(true))
return;
@ -377,7 +375,6 @@ void LeftMouseUp(int wParam)
void RightMouseDown()
{
LastMouseButtonAction = MouseActionType::None;
LastMouseButtonTime = SDL_GetTicks();
if (gmenu_is_active() || sgnTimeoutCurs != CURSOR_NONE || PauseMode == 2 || Players[MyPlayerId]._pInvincible) {
return;

1
Source/diablo.h

@ -83,7 +83,6 @@ extern uint16_t gnTickDelay;
extern char gszProductName[64];
extern MouseActionType LastMouseButtonAction;
extern uint32_t LastMouseButtonTime;
void FreeGameMem();
bool StartGame(bool bNewGame, bool bSinglePlayer);

Loading…
Cancel
Save