]> granicus.if.org Git - nethack/commitdiff
build fix (trunk only)
authornethack.rankin <nethack.rankin>
Fri, 9 Dec 2005 01:23:36 +0000 (01:23 +0000)
committernethack.rankin <nethack.rankin>
Fri, 9 Dec 2005 01:23:36 +0000 (01:23 +0000)
     Noticed by Michael:  I accidentally put a declaration in the wrong
spot and my compiler used C99 semantics to accept it there.

src/do_wear.c

index 43cd212853141d92441a025718a06d2229db26e3..4857c5a1c673f7f96c8aee18f85228fa9d9f1392 100644 (file)
@@ -438,9 +438,9 @@ Gloves_off()
 {
     long oldprop =
        u.uprops[objects[uarmg->otyp].oc_oprop].extrinsic & ~WORN_GLOVES;
+    boolean on_purpose = !context.mon_moving && !uarmg->in_use;
 
     context.takeoff.mask &= ~W_ARMG;
-    boolean on_purpose = !context.mon_moving && !uarmg->in_use;
 
     switch(uarmg->otyp) {
        case LEATHER_GLOVES: