From 8f5c6ab05ae4016e5ebaafa8bcd45c2410b80574 Mon Sep 17 00:00:00 2001 From: helixhorned Date: Sat, 31 Oct 2015 15:13:33 +0000 Subject: [PATCH] Mapster32: in TROR-join sectors [Ctrl+J], print z difference hint. At the very least, this makes it easier to decide for one option ("Connect yellow ceiling w/ blue floor (1) or (v)ice versa?") when one of the differences is zero, which might have occurred from temporarily breaking TROR links. git-svn-id: https://svn.eduke32.com/eduke32@5412 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/build/src/build.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/polymer/eduke32/build/src/build.c b/polymer/eduke32/build/src/build.c index 470de4619..ae1a8223b 100644 --- a/polymer/eduke32/build/src/build.c +++ b/polymer/eduke32/build/src/build.c @@ -6206,7 +6206,13 @@ end_point_dragging: fade_editor_screen(editorcolors[11] | (159<<8)); - askres = editor_ask_function("Connect yellow ceil w/ blue floor (1) or (v)ice versa?", askchars, 2); + char buffer[128]; + Bsnprintf(buffer, sizeof(buffer), "Z differences | yellow ceiling w/ blue floor: %d, vice versa: %d", + compcfz[YAX_CEILING][0]-compcfz[YAX_FLOOR][1], + compcfz[YAX_CEILING][1]-compcfz[YAX_FLOOR][0]); + printext16(8, ydim-STATUS2DSIZ2-12, editorcolors[15], -1, buffer, 0); + + askres = editor_ask_function("Connect yellow ceiling w/ blue floor (1) or (v)ice versa?", askchars, 2); if (askres==-1) goto end_join_sectors; joinstat &= (1<