Makes math helpers defines for performance

This commit is contained in:
kevinz000
2018-12-06 13:13:59 -08:00
committed by VirgoBot
parent 4a27ffb35a
commit fc178c1e04
48 changed files with 1000 additions and 228 deletions

View File

@@ -59,8 +59,13 @@
if(NORTH)
<<<<<<< HEAD
int_panel_x = ux + Floor(lift_size_x/2)
int_panel_y = uy + (make_walls ? 1 : 0)
=======
int_panel_x = ux + FLOOR(lift_size_x/2, 1)
int_panel_y = uy + 1
>>>>>>> 8da11c1... Makes math helpers defines for performance (#5654)
ext_panel_x = ux
ext_panel_y = ey + 2
@@ -76,8 +81,13 @@
if(SOUTH)
<<<<<<< HEAD
int_panel_x = ux + Floor(lift_size_x/2)
int_panel_y = ey - (make_walls ? 1 : 0)
=======
int_panel_x = ux + FLOOR(lift_size_x/2, 1)
int_panel_y = ey - 1
>>>>>>> 8da11c1... Makes math helpers defines for performance (#5654)
ext_panel_x = ex
ext_panel_y = uy - 2
@@ -93,8 +103,13 @@
if(EAST)
<<<<<<< HEAD
int_panel_x = ux + (make_walls ? 1 : 0)
int_panel_y = uy + Floor(lift_size_y/2)
=======
int_panel_x = ux+1
int_panel_y = uy + FLOOR(lift_size_y/2, 1)
>>>>>>> 8da11c1... Makes math helpers defines for performance (#5654)
ext_panel_x = ex+2
ext_panel_y = ey
@@ -110,8 +125,13 @@
if(WEST)
<<<<<<< HEAD
int_panel_x = ex - (make_walls ? 1 : 0)
int_panel_y = uy + Floor(lift_size_y/2)
=======
int_panel_x = ex-1
int_panel_y = uy + FLOOR(lift_size_y/2, 1)
>>>>>>> 8da11c1... Makes math helpers defines for performance (#5654)
ext_panel_x = ux-2
ext_panel_y = uy