mirror of https://github.com/OpenTTD/OpenTTD
(svn r19861) -Fix (r19814): Silence a warning.
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