summaryrefslogtreecommitdiffstats
path: root/src/control/Script.cpp
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-05-23 19:06:52 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2020-05-23 19:06:52 +0200
commit607175f02a3f89665c953d09c603183f909cc15b (patch)
tree92ccd56fd97daad6a97d8a348b2d6fc564370059 /src/control/Script.cpp
parentfixed script (diff)
downloadre3-607175f02a3f89665c953d09c603183f909cc15b.tar
re3-607175f02a3f89665c953d09c603183f909cc15b.tar.gz
re3-607175f02a3f89665c953d09c603183f909cc15b.tar.bz2
re3-607175f02a3f89665c953d09c603183f909cc15b.tar.lz
re3-607175f02a3f89665c953d09c603183f909cc15b.tar.xz
re3-607175f02a3f89665c953d09c603183f909cc15b.tar.zst
re3-607175f02a3f89665c953d09c603183f909cc15b.zip
Diffstat (limited to 'src/control/Script.cpp')
-rw-r--r--src/control/Script.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/control/Script.cpp b/src/control/Script.cpp
index 85098cca..bcb6a388 100644
--- a/src/control/Script.cpp
+++ b/src/control/Script.cpp
@@ -59,6 +59,7 @@
#include "RpAnimBlend.h"
#include "Rubbish.h"
#include "SimpleModelInfo.h"
+#include "SetPieces.h"
#include "Shadows.h"
#include "SpecialFX.h"
#include "Sprite.h"
@@ -10900,7 +10901,10 @@ int8 CRunningScript::ProcessCommands1200To1299(int32 command)
case COMMAND_ADD_SET_PIECE:
{
CollectParameters(&m_nIp, 13);
- debug("ADD_SET_PIECE not implemented, skipping\n");
+ CSetPieces::AddOne(ScriptParams[0],
+ *(CVector2D*)&ScriptParams[1], *(CVector2D*)&ScriptParams[3],
+ *(CVector2D*)&ScriptParams[5], *(CVector2D*)&ScriptParams[7],
+ *(CVector2D*)&ScriptParams[9], *(CVector2D*)&ScriptParams[11]);
return 0;
}
case COMMAND_SET_EXTRA_COLOURS: