diff --git a/soh/soh/Enhancements/randomizer/location_list.cpp b/soh/soh/Enhancements/randomizer/location_list.cpp index f36072eb6..d27bbad01 100644 --- a/soh/soh/Enhancements/randomizer/location_list.cpp +++ b/soh/soh/Enhancements/randomizer/location_list.cpp @@ -1,6 +1,6 @@ #include "static_data.h" -#define TWO_ACTOR_PARAMS(a, b) (abs(a) << 16) | abs(b) +#define TWO_ACTOR_PARAMS(a, b) ((((a)&0xFFFF) << 16) | ((b)&0xFFFF)) std::array Rando::StaticData::locationTable; diff --git a/soh/soh/Enhancements/randomizer/randomizer_check_objects.h b/soh/soh/Enhancements/randomizer/randomizer_check_objects.h index ab7e5538a..2fe530483 100644 --- a/soh/soh/Enhancements/randomizer/randomizer_check_objects.h +++ b/soh/soh/Enhancements/randomizer/randomizer_check_objects.h @@ -6,7 +6,7 @@ #include #include -#define TWO_ACTOR_PARAMS(a, b) (abs(a) << 16) | abs(b) +#define TWO_ACTOR_PARAMS(a, b) ((((a)&0xFFFF) << 16) | ((b)&0xFFFF)) namespace RandomizerCheckObjects { bool AreaIsDungeon(RandomizerCheckArea area);