summaryrefslogtreecommitdiffstats
path: root/src/objects/CutsceneHead.cpp
diff options
context:
space:
mode:
authoreray orçunus <erayorcunus@gmail.com>2019-11-09 16:17:54 +0100
committereray orçunus <erayorcunus@gmail.com>2019-11-12 23:16:23 +0100
commit030f64daf106d75c4dc058d3799483a2e79c5e6b (patch)
treedb6355ac25253a21eb18435f2fae612045903f9a /src/objects/CutsceneHead.cpp
parentMerge pull request #263 from Sergeanur/strcmp (diff)
downloadre3-030f64daf106d75c4dc058d3799483a2e79c5e6b.tar
re3-030f64daf106d75c4dc058d3799483a2e79c5e6b.tar.gz
re3-030f64daf106d75c4dc058d3799483a2e79c5e6b.tar.bz2
re3-030f64daf106d75c4dc058d3799483a2e79c5e6b.tar.lz
re3-030f64daf106d75c4dc058d3799483a2e79c5e6b.tar.xz
re3-030f64daf106d75c4dc058d3799483a2e79c5e6b.tar.zst
re3-030f64daf106d75c4dc058d3799483a2e79c5e6b.zip
Diffstat (limited to '')
-rw-r--r--src/objects/CutsceneHead.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/objects/CutsceneHead.cpp b/src/objects/CutsceneHead.cpp
index c423d0b8..8c417973 100644
--- a/src/objects/CutsceneHead.cpp
+++ b/src/objects/CutsceneHead.cpp
@@ -9,6 +9,7 @@
#include "CutsceneMgr.h"
#include "Streaming.h"
#include "CutsceneHead.h"
+#include "CdStream.h"
CCutsceneHead::CCutsceneHead(CObject *obj)
@@ -94,7 +95,7 @@ CCutsceneHead::PlayAnimation(const char *animName)
stream = RwStreamOpen(rwSTREAMFILENAME, rwSTREAMREAD, "ANIM\\CUTS.IMG");
assert(stream);
- CStreaming::MakeSpaceFor(size*2048);
+ CStreaming::MakeSpaceFor(size * CDSTREAM_SECTOR_SIZE);
CStreaming::ImGonnaUseStreamingMemory();
RwStreamSkip(stream, offset*2048);