AGS: Silence redundant mouse warning

Mouse movement control is not supported, but the warning should only be
displayed when requesting the functionality
This commit is contained in:
Walter Agazzi 2023-11-01 13:51:32 +01:00
parent 604f0e8bb9
commit 9fa5bb64fb

View File

@ -156,7 +156,8 @@ void Mouse::UpdateGraphicArea() {
void Mouse::SetMovementControl(bool flag) {
ControlEnabled = false;
warning("movement control not supported, mouse control can't be enabled");
if (flag)
warning("movement control not supported, mouse control can't be enabled");
ags_clear_mouse_movement();
}