Skip to content

Commit

Permalink
Made itemcls optional
Browse files Browse the repository at this point in the history
And removed the invalid character on line 710
  • Loading branch information
jekyllgrim authored and RicardoLuis0 committed Aug 17, 2024
1 parent 108ad77 commit 4d18380
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wadsrc/static/zscript/actors/actor.zs
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,7 @@ class Actor : Thinker native
// items that disappear on pickup.
// 'itemcls' is passed unconditionally, so it can still be read even if
// 'item' is null due to being destroyed with GoAwayAndDie() on pickup.
virtual void HasReceived(Inventory item, class<Inventory> itemcls) {}
virtual void HasReceived(Inventory item, class<Inventory> itemcls = null) {}

// Called in TryMove if the mover ran into another Actor. This isn't called on players
// if they're currently predicting. Guarantees collisions unlike CanCollideWith.
Expand Down Expand Up @@ -707,7 +707,7 @@ class Actor : Thinker native
native void SoundAlert(Actor target, bool splash = false, double maxdist = 0);
native void ClearBounce();
native TerrainDef GetFloorTerrain();
native bool CheckLocalView(int consoleplayer = -1 /* parameter is not used anymore but needed for backward compatibility. */);
native bool CheckLocalView(int consoleplayer = -1 /* parameter is not used anymore but needed for backward compatibility. */);
native bool CheckNoDelay();
native bool UpdateWaterLevel (bool splash = true);
native bool IsZeroDamage();
Expand Down

0 comments on commit 4d18380

Please sign in to comment.