BLADERUNNER: Fixed zbuffer in TB05

This was causing issues with walking in TB05
This commit is contained in:
Peter Kohaut 2019-04-30 19:13:47 +02:00
parent 5b18aee743
commit fb26f21d04
2 changed files with 7 additions and 4 deletions

View File

@ -81,9 +81,6 @@ public:
bool getLoopBeginAndEndFrame(int loop, int *begin, int *end);
protected:
private:
struct Header {
uint16 version; // 0x00
uint16 flags; // 0x02
@ -141,7 +138,6 @@ private:
class VQAAudioTrack;
Common::SeekableReadStream *_s;
// Graphics::Surface *_surface;
Header _header;
int _readingFrame;

View File

@ -43,6 +43,13 @@ bool VQAPlayer::open() {
return false;
}
#if !BLADERUNNER_ORIGINAL_BUGS
// TB05 has wrong end of a loop and this will load empty zbuffer from next loop, which will lead to broken pathfinding
if (_name.equals("TB05_2.VQA")) {
_decoder._loopInfo.loops[1].end = 60;
}
#endif
_hasAudio = _decoder.hasAudio();
if (_hasAudio) {
_audioStream = Audio::makeQueuingAudioStream(_decoder.frequency(), false);