]> git.pond.sub.org Git - empserver/commitdiff
Clean up silly use of long in satmap()
authorMarkus Armbruster <armbru@pond.sub.org>
Sun, 13 Jan 2013 16:09:25 +0000 (17:09 +0100)
committerMarkus Armbruster <armbru@pond.sub.org>
Wed, 8 May 2013 04:57:54 +0000 (06:57 +0200)
crackle's value is betwen 0 and 100, so change it to int.

src/lib/subs/satmap.c

index e016e54d3fa6531bc940c5d0548a4a16be26a6fc..731179a84a2a3a2477d5cba8523ba93b547d441a 100644 (file)
@@ -58,14 +58,13 @@ satmap(int x, int y, int eff, int range, int flags, int type)
     struct sctstr sect;
     struct shpstr ship;
     struct lndstr land;
     struct sctstr sect;
     struct shpstr ship;
     struct lndstr land;
-    int count;
+    int count, crackle;
     struct nstr_item ni;
     struct nstr_sect ns;
     int rx, ry;
     int row;
     int n;
     int changed = 0;
     struct nstr_item ni;
     struct nstr_sect ns;
     int rx, ry;
     int row;
     int n;
     int changed = 0;
-    long crackle;
     signed char noise[100];
 
     if (!eff)
     signed char noise[100];
 
     if (!eff)