Index: src/hci.c
===================================================================
--- src/hci.c   (revision 1626)
+++ src/hci.c   (working copy)
@@ -4132,10 +4132,19 @@
                return FALSE;
        }
 #endif
-
+       //in case above is re-enabled, I did NO change to below.
+       //this way if above is re-enable, no code change below required.
+       //otherwise, if you change += to =, then it breaks position when
+       //above reenabled.
+       //other option is just to stick back #ifdef EDIT_OPTIONS that was 
removed in rev1606
+       sButInit.formID = IDOPT_FORM;   //this all required to set default 
values.
+       sButInit.x = OPT_GAP;                   
+       sButInit.y = OPT_EDITY;                 
+       sButInit.width = OPT_BUTWIDTH;
+       sButInit.height = OPT_BUTHEIGHT;
        /* Add the add object buttons */
        sButInit.id = IDOPT_DROID;
        sButInit.x += OPT_GAP + OPT_BUTWIDTH;
        sButInit.pText = "Unit";
        sButInit.pTip = "Place Unit on map";
        if (!widgAddButton(psWScreen, &sButInit))

--
Click for discounts on certified diamonds and engagement rings
http://tagline.hushmail.com/fc/Ioyw6h4ee5poV8A85SzeWGpNlHxuHF0rMDXul2gpKvOaDzDI04LCXM/



_______________________________________________
Warzone-dev mailing list
[email protected]
https://mail.gna.org/listinfo/warzone-dev

Reply via email to