mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Talk Point: thing arg3 makes it invisible
This commit is contained in:
parent
6df73670dd
commit
720cbab51e
1 changed files with 7 additions and 0 deletions
|
|
@ -36,6 +36,7 @@ struct TalkPoint : Mobj
|
|||
Fixed radius() const { return mobj_t::thing_args[0] * FRACUNIT; }
|
||||
bool oneshot() const { return !mobj_t::thing_args[1]; }
|
||||
bool disabled() const { return mobj_t::thing_args[2]; }
|
||||
bool invisible() const { return mobj_t::thing_args[3]; }
|
||||
|
||||
void extravalue1() = delete;
|
||||
tic_t collect() const { return mobj_t::extravalue1; }
|
||||
|
|
@ -173,6 +174,12 @@ private:
|
|||
|
||||
void TalkPoint::init()
|
||||
{
|
||||
if (invisible())
|
||||
{
|
||||
renderflags |= RF_DONTDRAW;
|
||||
return;
|
||||
}
|
||||
|
||||
if (scaling() == 0)
|
||||
{
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue