- Actor.GetSpecies() is a non-destructive function

This commit is contained in:
Rachael Alexanderson 2024-10-14 17:30:59 -04:00
parent cca1946201
commit ffcce790de
No known key found for this signature in database
GPG key ID: 26A8ACCE97115EE0
2 changed files with 2 additions and 2 deletions

View file

@ -362,7 +362,7 @@ sector_t* RenderView(player_t* player)
// Draw all canvases that changed // Draw all canvases that changed
for (FCanvas* canvas : AllCanvases) for (FCanvas* canvas : AllCanvases)
{ {
if (canvas->Tex->CheckNeedsUpdate()) if (canvas->Tex && canvas->Tex->CheckNeedsUpdate())
{ {
screen->RenderTextureView(canvas->Tex, [=](IntRect& bounds) screen->RenderTextureView(canvas->Tex, [=](IntRect& bounds)
{ {

View file

@ -853,7 +853,7 @@ class Actor : Thinker native
native bool LookForPlayers(bool allaround, LookExParams params = null); native bool LookForPlayers(bool allaround, LookExParams params = null);
native bool TeleportMove(Vector3 pos, bool telefrag, bool modifyactor = true); native bool TeleportMove(Vector3 pos, bool telefrag, bool modifyactor = true);
native clearscope double DistanceBySpeed(Actor other, double speed) const; native clearscope double DistanceBySpeed(Actor other, double speed) const;
native name GetSpecies(); native clearscope name GetSpecies();
native void PlayActiveSound(); native void PlayActiveSound();
native void Howl(); native void Howl();
native void DrawSplash (int count, double angle, int kind); native void DrawSplash (int count, double angle, int kind);