[client] main: add + sign to mouse sensitivit alerts

This commit is contained in:
Geoffrey McRae 2019-05-24 05:35:16 +10:00
parent 759b4ef811
commit 83c5df2c47
2 changed files with 3 additions and 3 deletions

View file

@ -1 +1 @@
a12-231-g437ebf6265+1 a12-232-g759b4ef811+1

View file

@ -921,7 +921,7 @@ static void mouse_sens_inc(SDL_Scancode key, void * opaque)
if (state.mouseSens < 9) if (state.mouseSens < 9)
++state.mouseSens; ++state.mouseSens;
alloc_sprintf(&msg, "Sensitivity: %d", state.mouseSens); alloc_sprintf(&msg, "Sensitivity: %s%d", state.mouseSens > 0 ? "+" : "", state.mouseSens);
app_alert( app_alert(
LG_ALERT_INFO, LG_ALERT_INFO,
msg msg
@ -936,7 +936,7 @@ static void mouse_sens_dec(SDL_Scancode key, void * opaque)
if (state.mouseSens > -9) if (state.mouseSens > -9)
--state.mouseSens; --state.mouseSens;
alloc_sprintf(&msg, "Sensitivity: %d", state.mouseSens); alloc_sprintf(&msg, "Sensitivity: %s%d", state.mouseSens > 0 ? "+" : "", state.mouseSens);
app_alert( app_alert(
LG_ALERT_INFO, LG_ALERT_INFO,
msg msg