aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorStrangerke2016-12-23 12:41:26 -0800
committerEugene Sandulenko2017-01-25 22:42:16 +0100
commit23edae42f5d21ce32ab33977051a016949538ce2 (patch)
tree9d7765b6a648f8d227dee542b157a2fa31d8b33e /engines
parent2f5932503c849a6001035ae37455ed15d4f19a2d (diff)
downloadscummvm-rg350-23edae42f5d21ce32ab33977051a016949538ce2.tar.gz
scummvm-rg350-23edae42f5d21ce32ab33977051a016949538ce2.tar.bz2
scummvm-rg350-23edae42f5d21ce32ab33977051a016949538ce2.zip
CRYO: Remove useless convertion functions
Diffstat (limited to 'engines')
-rw-r--r--engines/cryo/eden.cpp21
-rw-r--r--engines/cryo/eden.h2
2 files changed, 0 insertions, 23 deletions
diff --git a/engines/cryo/eden.cpp b/engines/cryo/eden.cpp
index 7d537c1bd6..ebbc10ad9e 100644
--- a/engines/cryo/eden.cpp
+++ b/engines/cryo/eden.cpp
@@ -4850,29 +4850,8 @@ int EdenGame::ssndfl(uint16 num) {
return size;
}
-void EdenGame::ConvertIcons(Icon *icon, int count) {
- for (int i = 0; i < count; i++, icon++) {
- icon->sx = BE16(icon->sx);
- icon->sy = BE16(icon->sy);
- icon->ex = BE16(icon->ex);
- icon->ey = BE16(icon->ey);
- icon->_cursorId = BE16(icon->_cursorId);
- icon->_objectId = BE32(icon->_objectId);
- icon->_actionId = BE32(icon->_actionId);
- }
-}
-
-void EdenGame::ConvertLinks(Room *room, int count) {
- for (int i = 0; i < count; i++, room++) {
- room->_bank = BE16(room->_bank);
- room->_party = BE16(room->_party);
- }
-}
-
void EdenGame::ConvertMacToPC() {
// Convert all mac (big-endian) resources to native format
- ConvertIcons(_gameIcons, 136);
- ConvertLinks(_gameRooms, 424);
// Array of longs
int *p = (int *)gameLipsync;
for (int i = 0; i < 7240 / 4; i++)
diff --git a/engines/cryo/eden.h b/engines/cryo/eden.h
index 35f4b74498..9ecf55f855 100644
--- a/engines/cryo/eden.h
+++ b/engines/cryo/eden.h
@@ -283,8 +283,6 @@ private:
void loadRoomFile(uint16 num, Room *buffer);
void shnmfl(uint16 num);
int ssndfl(uint16 num);
- void ConvertIcons(Icon *icon, int count);
- void ConvertLinks(Room *room, int count);
void ConvertMacToPC();
void loadpermfiles();
bool ReadDataSyncVOC(unsigned int num);