aboutsummaryrefslogtreecommitdiff
path: root/engines/avalanche
diff options
context:
space:
mode:
authoruruk2013-07-25 11:41:33 +0200
committeruruk2013-07-25 11:41:33 +0200
commit28b0076e63a71bfa7e1d0b82f9153e13d26c4316 (patch)
tree45535e62f916bb4f6c763fe9f31d520ae97b21f2 /engines/avalanche
parentab04dd7aa6b5279f472a0136ba9a9e162b7fbe6c (diff)
downloadscummvm-rg350-28b0076e63a71bfa7e1d0b82f9153e13d26c4316.tar.gz
scummvm-rg350-28b0076e63a71bfa7e1d0b82f9153e13d26c4316.tar.bz2
scummvm-rg350-28b0076e63a71bfa7e1d0b82f9153e13d26c4316.zip
AVALANCHE: Celer: add new flavour: ch_natural_image.
Diffstat (limited to 'engines/avalanche')
-rw-r--r--engines/avalanche/celer2.cpp9
-rw-r--r--engines/avalanche/celer2.h2
2 files changed, 4 insertions, 7 deletions
diff --git a/engines/avalanche/celer2.cpp b/engines/avalanche/celer2.cpp
index 3cedb67a7a..17d4ae1052 100644
--- a/engines/avalanche/celer2.cpp
+++ b/engines/avalanche/celer2.cpp
@@ -302,13 +302,10 @@ void Celer::load_chunks(Common::String xx) {
memory[fv] = new byte[ch.size]; // Celer::forget_chunks() deallocates it.
- /*if (ch.natural) {
- getimage(ch.x * 8, ch.y, (ch.x + ch.xl) * 8, ch.y + ch.yl, memory[fv]);
+ if (ch.natural) {
+ memos[fv].flavour = ch_natural_image; // We simply read from the screen and later, in display_it() we draw it right back.
+ //getimage(ch.x * 8, ch.y, (ch.x + ch.xl) * 8, ch.y + ch.yl, memory[fv]);
} else
- blockread(f, memory[fv], ch.size);*/
- warning("STUB: Celer::load_chunks()");
-
- if (!ch.natural)
f.read(memory[fv], ch.size);
} else
memos[fv].x = on_disk;
diff --git a/engines/avalanche/celer2.h b/engines/avalanche/celer2.h
index 1d350054a2..3084fdd867 100644
--- a/engines/avalanche/celer2.h
+++ b/engines/avalanche/celer2.h
@@ -39,7 +39,7 @@ class AvalancheEngine;
class Celer {
public:
- enum flavourtype {ch_ega, ch_bgi};
+ enum flavourtype {ch_ega, ch_bgi, ch_natural_image};
struct chunkblocktype {
flavourtype flavour;