# HG changeset patch # User Matti Hamalainen # Date 1412549282 -10800 # Node ID 18d7e613b0752e0b1c73010160a0b9c44f5af2da # Parent adfc24b6a7b7f4d15bafa4624810b4e3ae31238d Remove useless use of "long int", we're not on 16bit DOS. diff -r adfc24b6a7b7 -r 18d7e613b075 src/objects.cc --- 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++; } }