shithub: duke3d

Download patch

ref: 17f63e099c278b7d4c184bd8758f0e828e254d82
parent: ebe25e40cb14670d8b91d973b6c5dc5edd99e149
author: Fabien Sanglard <[email protected]>
date: Wed Dec 19 14:19:41 EST 2012

Added coo2D_t typedef to differenciate from vector_t.

--- a/Engine/src/engine.c
+++ b/Engine/src/engine.c
@@ -113,7 +113,7 @@
 enum vector_index_e {VEC_X=0,VECY=1};
 enum screenSpaceCoo_index_e {VEC_COL_X=0,VEC_DIST=1};
 typedef int32_t vector_t[2];
-
+typedef int32_t coo2D_t[2];
 // This is the structure emitted for each wall that is potentially visible.
 // A stack of those is populated when the sectors are scanned.
 typedef struct pvWall_s{
@@ -120,7 +120,7 @@
     vector_t cameraSpaceCoo[2]; //Camera space coordinates of the wall endpoints. Access with vector_index_e.
     int16_t sectorId;        //The index of the sector this wall belongs to in the map database.
     int16_t worldWallId;     //The index of the wall in the map database.
-    vector_t screenSpaceCoo[2]; //Screen space coordinate of the wall endpoints. Access with screenSpaceCoo_index_e.
+    coo2D_t screenSpaceCoo[2]; //Screen space coordinate of the wall endpoints. Access with screenSpaceCoo_index_e.
 } pvWall_t;
 
 // Potentially Visible walls are stored in this stack.