changeset 98:18d7e613b075

Remove useless use of "long int", we're not on 16bit DOS.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 06 Oct 2014 01:48:02 +0300
parents adfc24b6a7b7
children 9df6681725da
files src/objects.cc
diffstat 1 files changed, 8 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/src/objects.cc	Mon Oct 06 01:47:27 2014 +0300
+++ b/src/objects.cc	Mon Oct 06 01:48:02 2014 +0300
@@ -1034,8 +1034,7 @@
 */
 void GetObjectCoords(int objtype, int objnum, int *xpos, int *ypos)        /* SWAP! */
 {
-    int n, v1, v2, sd1, sd2;
-    long accx, accy, num;
+    int n, v1, v2, sd1, sd2, accx, accy, num;
 
     switch (objtype)
     {
@@ -1107,9 +1106,9 @@
             *ypos = 0;
             return;
         }
-        accx = 0L;
-        accy = 0L;
-        num = 0L;
+        accx = 0;
+        accy = 0;
+        num = 0;
         for (n = 0; n < NumLineDefs; n++)
         {
             sd1 = LineDefs[n].sidedef1;
@@ -1120,11 +1119,11 @@
                 (sd2 >= 0 && SideDefs[sd2].sector == objnum))
             {
                 /* if the Sector is closed, all Vertices will be counted twice */
-                accx += (long) Vertices[v1].x;
-                accy += (long) Vertices[v1].y;
+                accx += Vertices[v1].x;
+                accy += Vertices[v1].y;
                 num++;
-                accx += (long) Vertices[v2].x;
-                accy += (long) Vertices[v2].y;
+                accx += Vertices[v2].x;
+                accy += Vertices[v2].y;
                 num++;
             }
         }