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
committerFilip Gawin <filip.gawin@zoho.com>2019-11-12 23:34:28 +0100
commitbe7d1d1a6327426dbe24c5b7b8eb16e5bb83a587 (patch)
tree3f802ec81aa739a423db3946f70244bfca0c536f /src/objects/CutsceneHead.cpp
parentfixes (diff)
downloadre3-be7d1d1a6327426dbe24c5b7b8eb16e5bb83a587.tar
re3-be7d1d1a6327426dbe24c5b7b8eb16e5bb83a587.tar.gz
re3-be7d1d1a6327426dbe24c5b7b8eb16e5bb83a587.tar.bz2
re3-be7d1d1a6327426dbe24c5b7b8eb16e5bb83a587.tar.lz
re3-be7d1d1a6327426dbe24c5b7b8eb16e5bb83a587.tar.xz
re3-be7d1d1a6327426dbe24c5b7b8eb16e5bb83a587.tar.zst
re3-be7d1d1a6327426dbe24c5b7b8eb16e5bb83a587.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);