From 2cb2dd3b24d3cff8596ffc7a9e94f4c9cc629766 Mon Sep 17 00:00:00 2001 From: Martin Michelsen Date: Sun, 3 Sep 2023 21:25:33 -0700 Subject: [PATCH] fix creature summon are computation on left/right-oriented maps --- src/Episode3/RulerServer.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Episode3/RulerServer.cc b/src/Episode3/RulerServer.cc index c1a6442f..dd9abb30 100644 --- a/src/Episode3/RulerServer.cc +++ b/src/Episode3/RulerServer.cc @@ -1709,6 +1709,7 @@ int32_t RulerServer::error_code_for_client_setting_card( for (size_t z = 1; z < 7; z++) { if (short_statuses->at(z).card_ref == card_ref) { card_in_hand = true; + break; } } if (!card_in_hand) { @@ -2043,12 +2044,12 @@ bool RulerServer::get_creature_summon_area( loc.direction = static_cast( (this->map_and_rules->start_facing_directions >> ((client_id & 0x0F) << 2)) & 0x000F); switch (loc.direction) { - case Direction::LEFT: + case Direction::RIGHT: loc.x = 1; loc.y = 0; region_size = this->map_and_rules->map.width - 3; break; - case Direction::RIGHT: + case Direction::LEFT: loc.x = this->map_and_rules->map.width - 2; loc.y = 0; region_size = this->map_and_rules->map.width - 3;