From 83c5df2c479e08a70ce9940c7989b09c5a382d9e Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Fri, 24 May 2019 05:35:16 +1000 Subject: [PATCH] [client] main: add + sign to mouse sensitivit alerts --- VERSION | 2 +- client/src/main.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/VERSION b/VERSION index cffada79..0cbd02e5 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -a12-231-g437ebf6265+1 \ No newline at end of file +a12-232-g759b4ef811+1 \ No newline at end of file diff --git a/client/src/main.c b/client/src/main.c index e977ef11..214e6f0a 100644 --- a/client/src/main.c +++ b/client/src/main.c @@ -921,7 +921,7 @@ static void mouse_sens_inc(SDL_Scancode key, void * opaque) if (state.mouseSens < 9) ++state.mouseSens; - alloc_sprintf(&msg, "Sensitivity: %d", state.mouseSens); + alloc_sprintf(&msg, "Sensitivity: %s%d", state.mouseSens > 0 ? "+" : "", state.mouseSens); app_alert( LG_ALERT_INFO, msg @@ -936,7 +936,7 @@ static void mouse_sens_dec(SDL_Scancode key, void * opaque) if (state.mouseSens > -9) --state.mouseSens; - alloc_sprintf(&msg, "Sensitivity: %d", state.mouseSens); + alloc_sprintf(&msg, "Sensitivity: %s%d", state.mouseSens > 0 ? "+" : "", state.mouseSens); app_alert( LG_ALERT_INFO, msg