summaryrefslogtreecommitdiff
path: root/ZAPD/ZRoom/Commands/SetObjectList.cpp
diff options
context:
space:
mode:
authorRozelette <Rozelette@users.noreply.github.com>2021-04-07 08:42:37 -0500
committerGitHub <noreply@github.com>2021-04-07 09:42:37 -0400
commit95bf5fc0080135f20f3ab17082f79b9e539e80a5 (patch)
tree92f5190dc89172df719d82092ae2d2fb086205ba /ZAPD/ZRoom/Commands/SetObjectList.cpp
parent19c2ea3d474de1b74781417f4b58782396c0aa50 (diff)
Add MM scene support (#109)
* Enough to get 1 scene OK * More MM progress * Fixes for scenes. 376/401 match * Fix last of MM scenes * Add SetWorldMapVisited * Cleanup * Hopefully fix OOT build * Address feedback * Add macro for rotation flags in MM * remove Align2 * Cleanup * Conditionally use looser alignment only in MM
Diffstat (limited to 'ZAPD/ZRoom/Commands/SetObjectList.cpp')
-rw-r--r--ZAPD/ZRoom/Commands/SetObjectList.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/ZAPD/ZRoom/Commands/SetObjectList.cpp b/ZAPD/ZRoom/Commands/SetObjectList.cpp
index f8d00a1..a405b33 100644
--- a/ZAPD/ZRoom/Commands/SetObjectList.cpp
+++ b/ZAPD/ZRoom/Commands/SetObjectList.cpp
@@ -2,7 +2,7 @@
#include "../../BitConverter.h"
#include "../../StringHelper.h"
#include "../../ZFile.h"
-#include "../ObjectList.h"
+#include "../ZNames.h"
#include "../ZRoom.h"
using namespace std;
@@ -46,7 +46,7 @@ string SetObjectList::GenerateSourceCodePass1(string roomName, int baseAddress)
for (size_t i = 0; i < objects.size(); i++)
{
uint16_t objectIndex = objects[i];
- declaration += StringHelper::Sprintf("\t%s,", ObjectList[objectIndex].c_str());
+ declaration += StringHelper::Sprintf(" %s,", ZNames::GetObjectName(objectIndex).c_str());
if (i < objects.size() - 1)
declaration += "\n";