summaryrefslogtreecommitdiff
path: root/ZAPD/ZRoom
diff options
context:
space:
mode:
authorAnghelo Carvajal <angheloalf95@gmail.com>2021-09-04 14:54:54 -0400
committerGitHub <noreply@github.com>2021-09-04 14:54:54 -0400
commita5962b3f634d48cc5be873c608c0ced07093e02e (patch)
tree637b32731b94207f7001eb7b0542b93b2cb0e89b /ZAPD/ZRoom
parente02e151c91d006279c4cb75636fead5d1663c7d3 (diff)
Fix floats in cutscene data (#174)
* Export cutscene floats as floats * Use CS_CMD_CONTINUE * Change SCmdBase to SceneCmd
Diffstat (limited to 'ZAPD/ZRoom')
-rw-r--r--ZAPD/ZRoom/Commands/SetAlternateHeaders.cpp2
-rw-r--r--ZAPD/ZRoom/Commands/Unused09.cpp2
-rw-r--r--ZAPD/ZRoom/Commands/Unused1D.cpp2
-rw-r--r--ZAPD/ZRoom/ZRoom.cpp2
-rw-r--r--ZAPD/ZRoom/ZRoomCommand.cpp2
5 files changed, 5 insertions, 5 deletions
diff --git a/ZAPD/ZRoom/Commands/SetAlternateHeaders.cpp b/ZAPD/ZRoom/Commands/SetAlternateHeaders.cpp
index f869ac4..3aefe42 100644
--- a/ZAPD/ZRoom/Commands/SetAlternateHeaders.cpp
+++ b/ZAPD/ZRoom/Commands/SetAlternateHeaders.cpp
@@ -47,7 +47,7 @@ void SetAlternateHeaders::DeclareReferencesLate(const std::string& prefix)
}
parent->AddDeclarationArray(
- segmentOffset, DeclarationAlignment::None, headers.size() * 4, "SCmdBase*",
+ segmentOffset, DeclarationAlignment::None, headers.size() * 4, "SceneCmd*",
StringHelper::Sprintf("%sAlternateHeaders0x%06X", prefix.c_str(), segmentOffset), 0,
declaration);
}
diff --git a/ZAPD/ZRoom/Commands/Unused09.cpp b/ZAPD/ZRoom/Commands/Unused09.cpp
index 7e7b709..b6ef6e8 100644
--- a/ZAPD/ZRoom/Commands/Unused09.cpp
+++ b/ZAPD/ZRoom/Commands/Unused09.cpp
@@ -12,7 +12,7 @@ std::string Unused09::GetBodySourceCode() const
std::string Unused09::GetCommandCName() const
{
- return "SCmdBase";
+ return "SceneCmd";
}
RoomCommand Unused09::GetRoomCommand() const
diff --git a/ZAPD/ZRoom/Commands/Unused1D.cpp b/ZAPD/ZRoom/Commands/Unused1D.cpp
index 1e03314..b8ea136 100644
--- a/ZAPD/ZRoom/Commands/Unused1D.cpp
+++ b/ZAPD/ZRoom/Commands/Unused1D.cpp
@@ -12,7 +12,7 @@ std::string Unused1D::GetBodySourceCode() const
std::string Unused1D::GetCommandCName() const
{
- return "SCmdBase";
+ return "SceneCmd";
}
RoomCommand Unused1D::GetRoomCommand() const
diff --git a/ZAPD/ZRoom/ZRoom.cpp b/ZAPD/ZRoom/ZRoom.cpp
index 01d9eb6..5f1212c 100644
--- a/ZAPD/ZRoom/ZRoom.cpp
+++ b/ZAPD/ZRoom/ZRoom.cpp
@@ -344,7 +344,7 @@ void ZRoom::ProcessCommandSets()
parent->AddDeclarationArray(
GETSEGOFFSET(commandSet), DeclarationAlignment::Align16, 8 * setCommands.size(),
- "static SCmdBase",
+ "static SceneCmd",
StringHelper::Sprintf("%sSet%04X", name.c_str(), GETSEGOFFSET(commandSet)),
setCommands.size(), declaration);
diff --git a/ZAPD/ZRoom/ZRoomCommand.cpp b/ZAPD/ZRoom/ZRoomCommand.cpp
index cbdb681..cbadaf2 100644
--- a/ZAPD/ZRoom/ZRoomCommand.cpp
+++ b/ZAPD/ZRoom/ZRoomCommand.cpp
@@ -37,7 +37,7 @@ void ZRoomCommand::DeclareReferencesLate(const std::string& prefix)
std::string ZRoomCommand::GetCommandCName() const
{
- return "SCmdBase";
+ return "SceneCmd";
}
ZResourceType ZRoomCommand::GetResourceType() const