shithub: choc

Download patch

ref: ecb2899358719d5033c8f4f743d28a5c880f97cc
parent: abdfcab7426f53e1857bbfbd36aea9dd637308b0
author: Simon Howard <[email protected]>
date: Tue Apr 1 20:00:11 EDT 2008

April Fools!

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 1110

--- a/src/p_setup.c
+++ b/src/p_setup.c
@@ -147,7 +147,6 @@
     {
 	li->x = SHORT(ml->x)<<FRACBITS;
 	li->y = SHORT(ml->y)<<FRACBITS;
-        li->x = -li->x;
     }
 
     // Free buffer memory.
@@ -154,6 +153,8 @@
     Z_Free (data);
 }
 
+
+
 //
 // P_LoadSegs
 //
@@ -176,16 +177,10 @@
     li = segs;
     for (i=0 ; i<numsegs ; i++, li++, ml++)
     {
-        {
-            int tmp = ml->v1;
-            ml->v1 = ml->v2;
-            ml->v2 = tmp;
-        }
 	li->v1 = &vertexes[SHORT(ml->v1)];
 	li->v2 = &vertexes[SHORT(ml->v2)];
 					
 	li->angle = (SHORT(ml->angle))<<16;
-        li->angle = -li->angle;
 	li->offset = (SHORT(ml->offset))<<16;
 	linedef = SHORT(ml->linedef);
 	ldef = &lines[linedef];
@@ -290,21 +285,11 @@
 	no->y = SHORT(mn->y)<<FRACBITS;
 	no->dx = SHORT(mn->dx)<<FRACBITS;
 	no->dy = SHORT(mn->dy)<<FRACBITS;
-        no->x += no->dx; no->y += no->dy;
-        no->x = -no->x;
-        no->dy = -no->dy;
 	for (j=0 ; j<2 ; j++)
 	{
 	    no->children[j] = SHORT(mn->children[j]);
 	    for (k=0 ; k<4 ; k++)
 		no->bbox[j][k] = SHORT(mn->bbox[j][k])<<FRACBITS;
-        
-            {
-                fixed_t tmp;
-                tmp = no->bbox[j][2];
-                no->bbox[j][2] = -no->bbox[j][3];
-                no->bbox[j][3] = -tmp;
-            }
 	}
     }
 	
@@ -356,9 +341,7 @@
 	// Do spawn all other stuff. 
 	mt->x = SHORT(mt->x);
 	mt->y = SHORT(mt->y);
-        mt->x = -mt->x;
 	mt->angle = SHORT(mt->angle);
-        mt->angle = 180-mt->angle;
 	mt->type = SHORT(mt->type);
 	mt->options = SHORT(mt->options);
 	
@@ -391,11 +374,6 @@
     ld = lines;
     for (i=0 ; i<numlines ; i++, mld++, ld++)
     {
-        {
-            short tmp = mld->v1;
-            mld->v1 = mld->v2;
-            mld->v2 = tmp;
-        }
 	ld->flags = SHORT(mld->flags);
 	ld->special = SHORT(mld->special);
 	ld->tag = SHORT(mld->tag);
@@ -506,25 +484,6 @@
     bmaporgy = blockmaplump[1]<<FRACBITS;
     bmapwidth = blockmaplump[2];
     bmapheight = blockmaplump[3];
-
-    bmaporgx += bmapwidth * 128 * FRACUNIT;
-    bmaporgx = -bmaporgx;
-
-    {
-        int x, y;
-        short *rowoffset;
-
-        for (y=0; y<bmapheight; ++y) {
-            rowoffset = blockmap + y * bmapwidth;
-            for (x=0; x<bmapwidth/2; ++x) {
-                short tmp;
-
-                tmp = rowoffset[x];
-                rowoffset[x] = rowoffset[bmapwidth-1-x];
-                rowoffset[bmapwidth-1-x] = tmp;
-            }
-        }
-    }
 	
     // clear out mobj chains
     count = sizeof(*blocklinks)* bmapwidth*bmapheight;