diff options
author | Filippos Karapetis | 2011-12-11 21:46:17 +0200 |
---|---|---|
committer | Filippos Karapetis | 2011-12-11 21:46:17 +0200 |
commit | 6f6d137726d8d80f158f92ff5d8f868a0df267dd (patch) | |
tree | 17d13f082bf866fb2d00aae69103f0a9ebe1ab6a /engines/dreamweb/use.cpp | |
parent | 21885f062144aade626610c164cbaa5a0bf6e8a5 (diff) | |
download | scummvm-rg350-6f6d137726d8d80f158f92ff5d8f868a0df267dd.tar.gz scummvm-rg350-6f6d137726d8d80f158f92ff5d8f868a0df267dd.tar.bz2 scummvm-rg350-6f6d137726d8d80f158f92ff5d8f868a0df267dd.zip |
DREAMWEB: Port 'uselighter' to C++
Diffstat (limited to 'engines/dreamweb/use.cpp')
-rw-r--r-- | engines/dreamweb/use.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/engines/dreamweb/use.cpp b/engines/dreamweb/use.cpp index 68f4aed1c0..9126b7e885 100644 --- a/engines/dreamweb/use.cpp +++ b/engines/dreamweb/use.cpp @@ -1116,6 +1116,26 @@ void DreamGenContext::useCardReader3() { } } +void DreamGenContext::useLighter() { + if (data.byte(kWithobject) == 255) { + withWhat(); + return; + } + + char id[4] = { 'S', 'M', 'K', 'E' }; // TODO: convert to string with trailing zero + if (!compare(data.byte(kWithobject), data.byte(kWithtype), id)) { + showFirstUse(); + putBackObStuff(); + } else { + cx = 300; + al = 9; + showPuzText(); + getExAd(data.byte(kWithobject)); + es.byte(bx + 2) = 255; + data.byte(kGetback) = 1; + } +} + void DreamGenContext::openTomb() { data.byte(kProgresspoints)++; showFirstUse(); |