]> git.pond.sub.org Git - empserver/commitdiff
(makelost, makenotlost, findlost, struct loststr): Change type to be a
authorRon Koenderink <rkoenderink@yahoo.ca>
Wed, 2 Aug 2006 21:46:34 +0000 (21:46 +0000)
committerRon Koenderink <rkoenderink@yahoo.ca>
Wed, 2 Aug 2006 21:46:34 +0000 (21:46 +0000)
short instead of a char.  This will make lost_type consistent with
ef_type in the rest of the structures.

include/lost.h
src/lib/subs/lostsub.c

index 9f02b7075d9ef893ad00780bab3d97de9c0e5008..3723944dda896190f7618812c17a81860e606e04 100644 (file)
@@ -43,7 +43,7 @@ struct loststr {
     natid lost_owner;          /* Who lost it */
     /* end of part matching struct empobj */
     int lost_uid;              /* lost ID (assigned, otherwise unused) */
-    char lost_type;            /* Type of thing (ship, plane, nuke, land, sector) */
+    short lost_type;           /* Type of thing (ship, plane, nuke, land, sector) */
     short lost_id;             /* ID of lost thing */
     coord lost_x;
     coord lost_y;
@@ -54,7 +54,7 @@ struct loststr {
 #define putlost(n, p) ef_write(EF_LOST, (n), (p))
 
 /* src/lib/subs/lostsub.c */
-extern void makelost(char, natid, short, coord, coord);
-extern void makenotlost(char, natid, short, coord, coord);
+extern void makelost(short, natid, short, coord, coord);
+extern void makenotlost(short, natid, short, coord, coord);
 
 #endif
index d805764e01fdcf0f4c66161fdc990791c739ef8a..234492ddbabb891983b5f86d9818f7443ed06bfb 100644 (file)
 #include "file.h"
 #include "lost.h"
 
-static int findlost(char, natid, short, coord, coord, int);
+static int findlost(short, natid, short, coord, coord, int);
 
 void
-makelost(char type, natid owner, short id, coord x, coord y)
+makelost(short type, natid owner, short id, coord x, coord y)
 {
     struct loststr lost;
     int n;
@@ -64,7 +64,7 @@ makelost(char type, natid owner, short id, coord x, coord y)
 }
 
 void
-makenotlost(char type, natid owner, short id, coord x, coord y)
+makenotlost(short type, natid owner, short id, coord x, coord y)
 {
     struct loststr lost;
     int n;
@@ -87,7 +87,7 @@ makenotlost(char type, natid owner, short id, coord x, coord y)
  * Else return -1.
  */
 static int
-findlost(char type, natid owner, short id, coord x, coord y, int free)
+findlost(short type, natid owner, short id, coord x, coord y, int free)
 {
     struct loststr lost;
     int n;