Skip to content

Commit 12f8d4c

Browse files
committed
Add IntersectLine to collision class
1 parent 7b7d15b commit 12f8d4c

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/twbl/teeworlds/collision.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
#ifndef TWBL_SRC_TWBL_COLLISION_H
22
#define TWBL_SRC_TWBL_COLLISION_H
33

4+
#include <twbl/teeworlds/base/vmath.h>
5+
46
#if __has_include(<game/collision.h>)
57
#include <game/collision.h>
68
#else
79
class CCollision
810
{
911
public:
1012
int GetTile(int x, int y) const { return -404; }
13+
int IntersectLine(vec2 Pos0, vec2 Pos1, vec2 *pOutCollision, vec2 *pOutBeforeCollision) const { return -404; }
1114
};
1215

1316
#endif

0 commit comments

Comments
 (0)