mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-04 10:17:08 +01:00
(svn r19861) -Fix (r19814): Silence a warning.
This commit is contained in:
parent
18b3085246
commit
e864701693
@ -332,7 +332,7 @@ static void PollEvent()
|
|||||||
if (prev_button_state != mouse_b) {
|
if (prev_button_state != mouse_b) {
|
||||||
uint diff = prev_button_state ^ mouse_b;
|
uint diff = prev_button_state ^ mouse_b;
|
||||||
while (diff != 0) {
|
while (diff != 0) {
|
||||||
int button = FindFirstBit(diff);
|
uint button = FindFirstBit(diff);
|
||||||
ClrBit(diff, button);
|
ClrBit(diff, button);
|
||||||
if (HasBit(mouse_b, button)) {
|
if (HasBit(mouse_b, button)) {
|
||||||
/* Pressed mouse button */
|
/* Pressed mouse button */
|
||||||
|
Loading…
Reference in New Issue
Block a user