- [FIX] Correcció per a poder arrimar a la pared els objectes mes xicotets de 8 en x o y.
This commit is contained in:
@@ -16,7 +16,7 @@ namespace room
|
||||
static vec3_t tmin = {0,0,0}; // primer tile en cada coordenada
|
||||
static vec3_t tmax = {7,7,7}; // ultim tile en cada coordenada
|
||||
static vec3_t min = {0,0,0}; // primer "pixel isometric" en cada coordenada
|
||||
static vec3_t max = {56,56,56}; // ultim "pixel isometric" en cada coordenada
|
||||
static vec3_t max = {64,64,64}; // ultim "pixel isometric" en cada coordenada
|
||||
|
||||
static int doors = NO_DOOR; // Portes obertes
|
||||
static int door_height[4]; // Altura de cada porta
|
||||
@@ -61,7 +61,7 @@ namespace room
|
||||
tmin = {3-inner_w,3-inner_h,0};
|
||||
tmax = {4+inner_w,4+inner_h,3};
|
||||
min = {tmin.x*8,tmin.y*8,0};
|
||||
max = {tmax.x*8,tmax.y*8,24};
|
||||
max = {(tmax.x+1)*8,(tmax.y+1)*8,24};
|
||||
doors = (door_height[XP]>=0?DOOR_XP:0) | (door_height[XN]>=0?DOOR_XN:0) | (door_height[YP]>=0?DOOR_YP:0) | (door_height[YN]>=0?DOOR_YN:0);
|
||||
//door_height[0] = inner_xp; //XP
|
||||
//door_height[1] = inner_xn; //XN
|
||||
|
||||
Reference in New Issue
Block a user