Skip to content

Commit

Permalink
- Actor.GetSpecies() is a non-destructive function
Browse files Browse the repository at this point in the history
  • Loading branch information
madame-rachelle committed Oct 14, 2024
1 parent fa46707 commit ee5442c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/rendering/hwrenderer/hw_entrypoint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ sector_t* RenderView(player_t* player)
// Draw all canvases that changed
for (FCanvas* canvas : AllCanvases)
{
if (canvas->Tex->CheckNeedsUpdate())
if (canvas->Tex && canvas->Tex->CheckNeedsUpdate())
{
screen->RenderTextureView(canvas->Tex, [=](IntRect& bounds)
{
Expand Down
2 changes: 1 addition & 1 deletion wadsrc/static/zscript/actors/actor.zs
Original file line number Diff line number Diff line change
Expand Up @@ -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 bool TeleportMove(Vector3 pos, bool telefrag, bool modifyactor = true);
native clearscope double DistanceBySpeed(Actor other, double speed) const;
native name GetSpecies();
native clearscope name GetSpecies();
native void PlayActiveSound();
native void Howl();
native void DrawSplash (int count, double angle, int kind);
Expand Down

0 comments on commit ee5442c

Please sign in to comment.