From 4d18380956eaab3da9ccaf8a06043692b5d95cc5 Mon Sep 17 00:00:00 2001 From: jekyllgrim Date: Sat, 17 Aug 2024 18:58:03 +0300 Subject: [PATCH] Made itemcls optional And removed the invalid character on line 710 --- wadsrc/static/zscript/actors/actor.zs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wadsrc/static/zscript/actors/actor.zs b/wadsrc/static/zscript/actors/actor.zs index 7dd0cfc2ba0..584b466aff0 100644 --- a/wadsrc/static/zscript/actors/actor.zs +++ b/wadsrc/static/zscript/actors/actor.zs @@ -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 itemcls) {} + virtual void HasReceived(Inventory item, class 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. @@ -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();