]> git.pond.sub.org Git - empserver/commitdiff
(vis, visbuf): Rev. 1.15 changed base type from s_char to char. This
authorMarkus Armbruster <armbru@pond.sub.org>
Sat, 29 Apr 2006 15:19:57 +0000 (15:19 +0000)
committerMarkus Armbruster <armbru@pond.sub.org>
Sat, 29 Apr 2006 15:19:57 +0000 (15:19 +0000)
is misleading, as the elements are numbers.  Change to signed char.

src/lib/commands/sona.c

index 464318765201f386c41fa8d7bb0eaa83fd0bacde..a24fbe51af8117eef6603fd7928f2834dc9b3aad 100644 (file)
@@ -76,8 +76,8 @@ sona(void)
     /* Where these are used are non-re-entrant, so we keep 'em around */
     static char **rad = NULL;
     static char *radbuf = NULL;
-    static char **vis = NULL;
-    static char *visbuf = NULL;
+    static signed char **vis = NULL;
+    static signed char *visbuf = NULL;
 
     if (!snxtitem(&ni, EF_SHIP, player->argp[1]))
        return RET_SYN;
@@ -94,7 +94,7 @@ sona(void)
        }
     }
     if (!vis && visbuf) {
-       vis = malloc(WORLD_Y * sizeof(char *));
+       vis = malloc(WORLD_Y * sizeof(signed char *));
        if (vis) {
            for (x = 0; x < WORLD_Y; x++) {
                vis[x] = &visbuf[(WORLD_X + 1) * x];