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/crplayer.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/crplayer.cc') diff --git a/src/crplayer.cc b/src/crplayer.cc index 8ecc926..621f103 100644 --- a/src/crplayer.cc +++ b/src/crplayer.cc @@ -657,10 +657,10 @@ void TPlayer::LoadInventory(bool SetStandardInventory){ Create(GetBodyContainer(this->ID, INVENTORY_LEFTHAND), GetSpecialObject(DEFAULT_LEFTHAND), 0); if(this->Sex == 1){ - Create(GetBodyContainer(this->ID, INVENTORY_LEFTHAND), + Create(GetBodyContainer(this->ID, INVENTORY_TORSO), GetSpecialObject(DEFAULT_BODY_MALE), 0); }else{ - Create(GetBodyContainer(this->ID, INVENTORY_LEFTHAND), + Create(GetBodyContainer(this->ID, INVENTORY_TORSO), GetSpecialObject(DEFAULT_BODY_FEMALE), 0); } @@ -2559,7 +2559,7 @@ void SavePlayerData(TPlayerData *Slot){ break; } - if(FirstPosition){ + if(!FirstPosition){ Script.writeText(","); Script.writeLn(); Script.writeText(" "); @@ -2581,7 +2581,7 @@ void SavePlayerData(TPlayerData *Slot){ DepotNr += 1){ if(Slot->Depot[DepotNr] != NULL){ TReadBuffer Buffer(Slot->Depot[DepotNr], Slot->DepotSize[DepotNr]); - if(FirstDepot){ + if(!FirstDepot){ Script.writeText(","); Script.writeLn(); Script.writeText(" "); -- cgit v1.2.3