From 243bea66dd1dea9f64d07e68775c4f6333258700 Mon Sep 17 00:00:00 2001 From: helixhorned Date: Fri, 14 Dec 2012 19:28:11 +0000 Subject: [PATCH] Mapster32: correct message when changing shade by small steps ([+], [-], mwheel) git-svn-id: https://svn.eduke32.com/eduke32@3289 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/source/astub.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/polymer/eduke32/source/astub.c b/polymer/eduke32/source/astub.c index 7ca3a6499..d0b0c01bc 100644 --- a/polymer/eduke32/source/astub.c +++ b/polymer/eduke32/source/astub.c @@ -5542,8 +5542,12 @@ static void Keys3d(void) else { clamped = addtobyte(&AIMED_CF_SEL(shade), tsign); + // TODO: factor formatting stuff out and use elsewhere? (clamped ? message : silentmessage) - ("%s %d shade %d%s", Typestr[searchstat], i, + ("%s %s%d shade %d%s", Typestr[searchstat], + AIMING_AT_CEILING_OR_FLOOR ? "of sector " : "", + AIMING_AT_WALL_OR_MASK ? SELECT_WALL() : + (AIMING_AT_CEILING_OR_FLOOR ? searchsector : searchwall), AIMED_CF_SEL(shade), clamped ? " (clamped)":""); } }