srb2::Mobj: add bouncing methods

This commit is contained in:
James R 2023-11-27 04:36:33 -08:00
parent 5cbb11cbfc
commit 7656edc91a

View file

@ -17,6 +17,7 @@
#include "doomtype.h"
#include "k_hitlag.h"
#include "k_kart.h"
#include "info.h"
#include "p_local.h"
#include "p_mobj.h"
@ -116,6 +117,9 @@ struct Mobj : mobj_t
void instathrust(angle_t angle, fixed speed) { P_InstaThrust(this, angle, speed); }
void thrust(angle_t angle, fixed speed) { P_Thrust(this, angle, speed); }
static void bounce(Mobj* t1, Mobj* t2) { K_KartBouncing(t1, t2); }
void solid_bounce(Mobj* solid) { K_KartSolidBounce(this, solid); }
//
// Mobj pointers