Right click resets input state when placing building
This commit is contained in:
@@ -242,8 +242,10 @@ void updatePlayerInput() {
|
||||
break;
|
||||
}
|
||||
case INPUT_BUILDING: {
|
||||
if (input->building <= BUILDING_NONE || input->building >= BUILDING_COUNT) {
|
||||
if (input->building <= BUILDING_NONE || input->building >= BUILDING_COUNT ||
|
||||
isInputBtnJustUp(input, input->mapping.secondaryBtn)) {
|
||||
input->state = INPUT_NONE;
|
||||
resetInputState(input);
|
||||
return;
|
||||
}
|
||||
BzTile sizeX = 0, sizeY = 0;
|
||||
|
||||
Reference in New Issue
Block a user