Skip to content

Commit f53a76b

Browse files
committed
MSVC Fix
- Fix hitting an internal compiler error on (at least) recent versions of MSVC - Update comment to be more specific
1 parent cb14f0b commit f53a76b

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

tweaks.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2319,8 +2319,9 @@ TweakError add_barren_dungeon_hint_triggers(World& world) {
23192319
totg_room0.addAction([](RandoSession* session, FileType* data) -> int {
23202320
CAST_ENTRY_TO_FILETYPE(totg_room0, FileTypes::DZXFile, data)
23212321

2322-
// Multiple triggers all around the room (one giant trigger doesn't work for some reason)
2323-
auto datas = {
2322+
// The max radius for the trigger object is 2550 but we need it to be ~7000 for this room
2323+
// So we use multiple triggers all around the room instead
2324+
const std::vector<std::string> datas = {
23242325
"TagHt\x00\x00\x00\xFF\xFF\xFF\x3F\x45\x48\xCB\x26\xC4\xCA\x23\x9A\xC5\x22\xDA\x18\x05\xE5\x00\x00\xFF\xFF\xFF\xFF\x1E\x0A\x0A\xFF"s,
23252326
"TagHt\x00\x00\x00\xFF\xFF\xFF\x3F\x45\x49\x4A\x6F\xC4\xC2\x73\x68\xC5\x02\xAA\x6C\x05\xE5\x00\x00\xFF\xFF\xFF\xFF\x1E\x0A\x0A\xFF"s,
23262327
"TagHt\x00\x00\x00\xFF\xFF\xFF\x3F\x45\x49\x4A\x6F\xC4\xC2\x73\x68\xC4\xC4\x43\x35\x05\xE5\x00\x00\xFF\xFF\xFF\xFF\x1E\x0A\x0A\xFF"s,

0 commit comments

Comments
 (0)