From f33b9c0dba211543232cde0b4102b4415d0a61ad Mon Sep 17 00:00:00 2001 From: ac-stef Date: Fri, 16 Jun 2017 19:20:21 +0200 Subject: [PATCH] enable automapconfig whenever config slots are added --- config/menus_edit.cfg | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/config/menus_edit.cfg b/config/menus_edit.cfg index 4f82858202..9ea49d3d45 100644 --- a/config/menus_edit.cfg +++ b/config/menus_edit.cfg @@ -88,7 +88,7 @@ tempalias __rebuildmapmodelmenus [ menuitem $desc (concat newent mapmodel $idxs) (__mm_showmodel $$keyword $path) $usage // usual case: one slot per model ] ][ - menuitem (concatword "\f4" $desc) (concat newent mapmodel "(mapmodel" $dflts $path ")") (__mm_showmodel $$keyword $path) $usage // mapmodel has no slot assigned: assign one + menuitem (concatword "\f4" $desc) (concat newent mapmodel "(mapmodel" $dflts $path ") ; __enableautomapconfig") (__mm_showmodel $$keyword $path) $usage // mapmodel has no slot assigned: assign one ] ] // add menus sorted by author and distribution @@ -381,10 +381,10 @@ menuinit [ usedslots = "once more" ] if (! (strlen (edittextureslot 255))) [ - menuitem (concat "Add to map config" $usedslots) (concat texture 0 $__lastwatchedtexture) - menuitem "Add to map config and use as next wall texture" (concat "edittexturestack wall (texture 0" $__lastwatchedtexture ")") - menuitem "Add to map config and use as next floor texture" (concat "edittexturestack floor (texture 0" $__lastwatchedtexture ")") - menuitem "Add to map config and use as next ceiling texture" (concat "edittexturestack ceiling (texture 0" $__lastwatchedtexture ")") + menuitem (concat "Add to map config" $usedslots) (concat texture 0 $__lastwatchedtexture ; __enableautomapconfig) + menuitem "Add to map config and use as next wall texture" (concat "edittexturestack wall (texture 0" $__lastwatchedtexture ") ; __enableautomapconfig") + menuitem "Add to map config and use as next floor texture" (concat "edittexturestack floor (texture 0" $__lastwatchedtexture ") ; __enableautomapconfig") + menuitem "Add to map config and use as next ceiling texture" (concat "edittexturestack ceiling (texture 0" $__lastwatchedtexture ") ; __enableautomapconfig") ] [ menuitem "\f4(no free texture slots available)" -1 ] @@ -572,7 +572,7 @@ menuinit [ usedslots = "once more" ] if (! (strlen (editmapsoundslot 255))) [ - menuitem (concat "\f0Add to map config" $usedslots) (concat mapsound $__lastwatchedmapsound -1) + menuitem (concat "\f0Add to map config" $usedslots) (concat mapsound $__lastwatchedmapsound -1 ; __enableautomapconfig) ] [ menuitem "\f4(no free mapsound slots available)" -1 ]