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
This commit is contained in:
helixhorned 2015-10-31 15:13:33 +00:00
parent d824ddf406
commit 8f5c6ab05a

View file

@ -6206,7 +6206,13 @@ end_point_dragging:
fade_editor_screen(editorcolors[11] | (159<<8)); 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) if (askres==-1)
goto end_join_sectors; goto end_join_sectors;
joinstat &= (1<<askres); joinstat &= (1<<askres);