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

This commit is contained in:
Rachael Alexanderson 2024-10-14 17:30:59 -04:00
parent fa467073eb
commit ee5442c06b
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

@ -854,7 +854,7 @@ class Actor : Thinker native
native int LookForEnemiesEx(out Array<Actor> targets, double range = -1, bool noPlayers = true, bool allaround = false, LookExParams params = null); native int LookForEnemiesEx(out Array<Actor> targets, double range = -1, bool noPlayers = true, bool allaround = false, 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);