aboutsummaryrefslogtreecommitdiff
path: root/engines/cryo/eden.cpp
diff options
context:
space:
mode:
authorStrangerke2016-12-27 10:43:15 -0800
committerEugene Sandulenko2017-01-25 22:42:18 +0100
commit7b95465309a0f23846b0780f89855c2626dbc486 (patch)
tree8da229b6f91404f91ec0bd44dd4b8236e09c0192 /engines/cryo/eden.cpp
parent2d3bbebc6bba4785018e0aaaf3fb5f46ffbb486e (diff)
downloadscummvm-rg350-7b95465309a0f23846b0780f89855c2626dbc486.tar.gz
scummvm-rg350-7b95465309a0f23846b0780f89855c2626dbc486.tar.bz2
scummvm-rg350-7b95465309a0f23846b0780f89855c2626dbc486.zip
CRYO: change the definition of verifh and expand_hsq
Diffstat (limited to 'engines/cryo/eden.cpp')
-rw-r--r--engines/cryo/eden.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/engines/cryo/eden.cpp b/engines/cryo/eden.cpp
index bb6a3cddf8..8bf1f4213d 100644
--- a/engines/cryo/eden.cpp
+++ b/engines/cryo/eden.cpp
@@ -4666,9 +4666,9 @@ void EdenGame::effetpix() {
}
////// datfile.c
-void EdenGame::verifh(void *ptr) {
+void EdenGame::verifh(byte *ptr) {
byte sum = 0;
- byte *head = (byte *)ptr;
+ byte *head = ptr;
for (int8 i = 0; i < 6; i++)
sum += *head++;
@@ -4689,7 +4689,7 @@ void EdenGame::verifh(void *ptr) {
for (; h3; h3--)
*data-- = *head--;
head = data + 1;
- data = (byte *)ptr;
+ data = ptr;
Expand_hsq(head, data);
}
@@ -4967,14 +4967,14 @@ void EdenGame::loadpartoffile(uint16 num, void *buffer, int32 pos, int32 len) {
h_bigfile.read(buffer, len);
}
-void EdenGame::Expand_hsq(void *input, void *output) {
- byte *src = (byte *)input;
- byte *dst = (byte *)output;
- byte *ptr;
- uint16 bit; // bit
- uint16 queue = 0; // queue
- uint16 len = 0;
- int16 ofs;
+void EdenGame::Expand_hsq(byte *input, byte *output) {
+ byte *src = input;
+ byte *dst = output;
+ byte *ptr;
+ uint16 bit; // bit
+ uint16 queue = 0; // queue
+ uint16 len = 0;
+ int16 ofs;
#define GetBit \
bit = queue & 1; \
queue >>= 1; \