mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Toxomister: punt passive clouds
This commit is contained in:
parent
15737d7b8a
commit
936b8e7d0c
1 changed files with 4 additions and 0 deletions
|
|
@ -18,6 +18,7 @@
|
||||||
#include "../doomdef.h"
|
#include "../doomdef.h"
|
||||||
#include "../doomtype.h"
|
#include "../doomtype.h"
|
||||||
#include "../g_game.h"
|
#include "../g_game.h"
|
||||||
|
#include "../k_collide.h"
|
||||||
#include "../k_hud.h" // transflag
|
#include "../k_hud.h" // transflag
|
||||||
#include "../m_easing.h"
|
#include "../m_easing.h"
|
||||||
#include "../m_fixed.h"
|
#include "../m_fixed.h"
|
||||||
|
|
@ -348,6 +349,9 @@ struct Cloud : Mobj
|
||||||
if (toucher == target())
|
if (toucher == target())
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
if (K_PuntCollide(this, toucher))
|
||||||
|
return true;
|
||||||
|
|
||||||
if (toucher->player)
|
if (toucher->player)
|
||||||
{
|
{
|
||||||
if (this == toucher->player->toxomisterCloud) // already attached
|
if (this == toucher->player->toxomisterCloud) // already attached
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue