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