From 647932d865468c6cec27cd7ecb7df457260730c2 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Thu, 23 Dec 2021 21:32:37 -0800 Subject: [PATCH] CHEWY: Move vec_tbl to a field of movclass --- engines/chewy/movclass.cpp | 7 +++++-- engines/chewy/movclass.h | 1 + 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/engines/chewy/movclass.cpp b/engines/chewy/movclass.cpp index 44acb207b78..d6ce5f32b20 100644 --- a/engines/chewy/movclass.cpp +++ b/engines/chewy/movclass.cpp @@ -49,10 +49,13 @@ namespace Chewy { #define MOV_X 1 #define MOV_Y 2 -int16 vec_tbl[4] = { -40, 1, 40, -1}; - movclass::movclass() { + vec_tbl[0] = -40; + vec_tbl[1] = 1; + vec_tbl[2] = 40; + vec_tbl[3] = -1; } + movclass::~movclass() { } diff --git a/engines/chewy/movclass.h b/engines/chewy/movclass.h index 655dea10955..6f9d0bb0ed5 100644 --- a/engines/chewy/movclass.h +++ b/engines/chewy/movclass.h @@ -133,6 +133,7 @@ private: MovLineExit mle; GotoMovLine gml; GotoPkt *gpkt = nullptr; + int16 vec_tbl[4]; }; } // namespace Chewy