From e4b8bf807b76f6f446d9617d9a3957dc77dd6e90 Mon Sep 17 00:00:00 2001 From: fusion32 Date: Mon, 21 Jul 2025 19:23:42 -0300 Subject: multiple bug-fixes and improvements - Make uint32 -> Object conversion explicit. This can be more verbose but will get a lot of small mistakes, especially with function overloads. - Fix problem with the path finder not including the last step when `MustReach` was false. - Fix problem with NPC conditions. - Fix problem with monster homes continuously spawning monsters. - Fix problem with creating the standard inventory. - Fix problem with creature timers (IMPORTANT). - Fix problem with `ThrowPossible` (IMPORTANT). - Fix problem with rune casting. - Fix problem with executing moveuse events. - Fix problem with `MoveRel` and `WriteName` moveuse actions. - Fix problem with eating food deleting the whole stack. - Many other bug-fixes and improvements. --- src/receiving.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/receiving.cc') diff --git a/src/receiving.cc b/src/receiving.cc index 6cf6609..ddaee44 100644 --- a/src/receiving.cc +++ b/src/receiving.cc @@ -646,7 +646,7 @@ void CEditText(TConnection *Connection, TReadBuffer *Buffer){ return; } - Object Obj = Buffer->readQuad(); + Object Obj = Object(Buffer->readQuad()); if(!Obj.exists()){ SendResult(Connection, NOTACCESSIBLE); return; @@ -697,7 +697,7 @@ void CEditList(TConnection *Connection, TReadBuffer *Buffer){ }else if(Type == SUBOWNERLIST){ ChangeSubowners((uint16)ID, Player, Text); }else if(Type == DOORLIST){ - Object Door = ID; + Object Door = Object(ID); if(!Door.exists()){ SendResult(Connection, NOTACCESSIBLE); return; -- cgit v1.2.3