]> git.pond.sub.org Git - empserver/commitdiff
(sctstr, sect_ca): Make sct_mines signed for same reasons as
authorMarkus Armbruster <armbru@pond.sub.org>
Mon, 23 Aug 2004 15:50:32 +0000 (15:50 +0000)
committerMarkus Armbruster <armbru@pond.sub.org>
Mon, 23 Aug 2004 15:50:32 +0000 (15:50 +0000)
sct_item[] (see sect.h rev. 1.10).

include/sect.h
src/lib/global/nsc.c

index 56092de6894c63c291d49399d37ec5570fc56c48..63fef0a4328741775670f0d2cffed43636878a20 100644 (file)
@@ -75,7 +75,7 @@ struct sctstr {
     short sct_item[I_MAX+1];   /* amount of items stored here */
     short sct_del[I_MAX+1];    /* delivieries */
     short sct_dist[I_MAX+1];   /* distribution thresholds */
-    u_short sct_mines;         /* number of mines */
+    short sct_mines;           /* number of mines */
     u_short sct_pstage;                /* plague stage */
     u_short sct_ptime;         /* how many etus remain in this stage */
     u_char sct_che;            /* number of guerrillas */
index 1301c8c829adb73b18fad4b059b970d2e8b7ee9d..f81ce19dcc3fbe70fa26b9a8480310bb6d9d050f 100644 (file)
@@ -101,7 +101,7 @@ struct castr sect_ca[] = {
     NSC_IVEC(fldoff(sctstr, sct_item), ""),
     NSC_IVEC(fldoff(sctstr, sct_dist), "_dist"),
     NSC_IVEC(fldoff(sctstr, sct_del), "_del"),
-    {NSC_USHORT, NSC_DEITY, 0, fldoff(sctstr, sct_mines), "mines"},
+    {NSC_SHORT, NSC_DEITY, 0, fldoff(sctstr, sct_mines), "mines"},
     {NSC_USHORT, NSC_DEITY, 0, fldoff(sctstr, sct_pstage), "pstage"},
     {NSC_USHORT, NSC_DEITY, 0, fldoff(sctstr, sct_ptime), "ptime"},
     {NSC_USHORT, NSC_DEITY, 0, fldoff(sctstr, sct_che), "che"},