Skip to content

Commit

Permalink
#41 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
XProger committed May 13, 2017
1 parent cd29100 commit 44e924b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/collision.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include "format.h"

struct Collision {
enum Side { NONE, LEFT, RIGHT, FRONT, TOP, BOTTOM } side;
enum Side { NONE, LEFT, RIGHT, FRONT, BACK, TOP, BOTTOM } side;

struct Info {
int room, roomAbove, roomBelow, floor, ceiling;
Expand Down Expand Up @@ -67,7 +67,7 @@ struct Collision {
} else
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) {
Expand Down

0 comments on commit 44e924b

Please sign in to comment.