From 086dcf383d9cda9769a348e3da5b731bc6c50d56 Mon Sep 17 00:00:00 2001 From: helixhorned Date: Sun, 4 Dec 2011 21:20:31 +0000 Subject: [PATCH] Mapster32: fix filling all sectors of a bunch with Ctrl-U. Previously, only one sector was filled and the 'clear bunch' message was displayed even if the operation was canceled. git-svn-id: https://svn.eduke32.com/eduke32@2153 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/source/astub.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/polymer/eduke32/source/astub.c b/polymer/eduke32/source/astub.c index 2add753e2..91adb761c 100644 --- a/polymer/eduke32/source/astub.c +++ b/polymer/eduke32/source/astub.c @@ -7680,7 +7680,7 @@ static void Keys2d(void) if (fb >= 0) { for (SECTORS_OF_BUNCH(fb,YAX_FLOOR, i)) - fillsector(tcursectornum, editorcolors[11]); + fillsector(i, editorcolors[11]); fade_editor_screen(editorcolors[11]); if (ask_if_sure("Clear all TROR extensions from marked sectors?", 0)) @@ -7688,13 +7688,13 @@ static void Keys2d(void) for (cf=0; cf<2; cf++) for (SECTORS_OF_BUNCH(fb,cf, i)) yax_setbunch(i, cf, -1); + + yax_update(0); + yax_updategrays(pos.z); + + message("Cleared TROR bunch %d", fb); + asksave = 1; } - - yax_update(0); - yax_updategrays(pos.z); - - message("Cleared TROR bunch %d", fb); - asksave = 1; } }