mirror of
https://github.com/XProger/OpenLara.git
synced 2025-08-17 18:36:43 +02:00
#41 fix
This commit is contained in:
@@ -6,7 +6,7 @@
|
|||||||
#include "format.h"
|
#include "format.h"
|
||||||
|
|
||||||
struct Collision {
|
struct Collision {
|
||||||
enum Side { NONE, LEFT, RIGHT, FRONT, TOP, BOTTOM } side;
|
enum Side { NONE, LEFT, RIGHT, FRONT, BACK, TOP, BOTTOM } side;
|
||||||
|
|
||||||
struct Info {
|
struct Info {
|
||||||
int room, roomAbove, roomBelow, floor, ceiling;
|
int room, roomAbove, roomBelow, floor, ceiling;
|
||||||
@@ -67,7 +67,7 @@ struct Collision {
|
|||||||
} else
|
} else
|
||||||
return;
|
return;
|
||||||
|
|
||||||
pos += vec3(d.x, 0.0f, d.y);
|
pos += vec3(d.x, -velocity.y, d.y);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline bool checkHeight(TR::Level *level, int roomIndex, const vec3 &pos, const vec2 &offset, int height, int maxAscent, int maxDescent, Side side) {
|
inline bool checkHeight(TR::Level *level, int roomIndex, const vec3 &pos, const vec2 &offset, int height, int maxAscent, int maxDescent, Side side) {
|
||||||
|
Reference in New Issue
Block a user