aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfusion32 <marcopuzziello@gmail.com>2026-02-11 00:31:16 -0300
committerfusion32 <marcopuzziello@gmail.com>2026-02-11 00:31:16 -0300
commit38a06a06d6988009eb022f1a5ee0f31f8b93ac4e (patch)
tree640f0871c3e6f5a32ba5c78955d9d2f7a1c9d56f
parentcd6b26da5db7ef5422b510ba141ab924aaec71bf (diff)
downloadgame-38a06a06d6988009eb022f1a5ee0f31f8b93ac4e.tar.gz
game-38a06a06d6988009eb022f1a5ee0f31f8b93ac4e.zip
fix bug with Challenge spell
-rw-r--r--src/magic.cc4
-rw-r--r--src/map.cc4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/magic.cc b/src/magic.cc
index 61b2fe7..4e92808 100644
--- a/src/magic.cc
+++ b/src/magic.cc
@@ -2636,8 +2636,8 @@ void Challenge(TCreature *Actor, int ManaPoints, int SoulPoints, int Radius){
}
int ActorX = Actor->posx;
- int ActorY = Actor->posx;
- int ActorZ = Actor->posx;
+ int ActorY = Actor->posy;
+ int ActorZ = Actor->posz;
for(int R = 0; R <= Radius; R += 1){
int CirclePoints = Circle[R].Count;
for(int Point = 0; Point < CirclePoints; Point += 1){
diff --git a/src/map.cc b/src/map.cc
index 61cae98..c692d30 100644
--- a/src/map.cc
+++ b/src/map.cc
@@ -1476,8 +1476,8 @@ void PatchSector(int SectorX, int SectorY, int SectorZ, bool FullSector,
// NOTE(fusion): Step 2.
// Patch fields not specified in the input script if `FullSector` is set.
- // Note that patching in this case is simply deleting a field's objects.
- // House fields are NOT patched if `SaveHouses` is set.
+ // Note that patching in this case is simply clearing the field. House fields
+ // are NOT patched if `SaveHouses` is set.
if(FullSector){
for(int OffsetX = 0; OffsetX < 32; OffsetX += 1)
for(int OffsetY = 0; OffsetY < 32; OffsetY += 1){