aboutsummaryrefslogtreecommitdiff
path: root/engines/dreamweb
diff options
context:
space:
mode:
authorBertrand Augereau2011-09-07 04:00:56 +0200
committerBertrand Augereau2011-09-07 04:00:56 +0200
commitbf5b2244c66d5da4d3495b3667908c83e07a7d80 (patch)
treeb2fa2457381e1f19be30ba183e2f7b9f118846f6 /engines/dreamweb
parentad3b70b539173a8a036529a19904ae11bec4477c (diff)
downloadscummvm-rg350-bf5b2244c66d5da4d3495b3667908c83e07a7d80.tar.gz
scummvm-rg350-bf5b2244c66d5da4d3495b3667908c83e07a7d80.tar.bz2
scummvm-rg350-bf5b2244c66d5da4d3495b3667908c83e07a7d80.zip
DREAMWEB: Cleaning of 'useroutine' using new functions
Diffstat (limited to 'engines/dreamweb')
-rw-r--r--engines/dreamweb/use.cpp13
1 files changed, 5 insertions, 8 deletions
diff --git a/engines/dreamweb/use.cpp b/engines/dreamweb/use.cpp
index f584de254a..d6648b556e 100644
--- a/engines/dreamweb/use.cpp
+++ b/engines/dreamweb/use.cpp
@@ -136,14 +136,11 @@ void DreamGenContext::useroutine() {
}
delpointer();
- getobtextstart();
- findnextcolon();
- if (al != 0) {
- findnextcolon();
- if (al != 0) {
- al = es.byte(si);
- if (al != 0) {
- usetext();
+ uint8 *obText = getobtextstartCPP();
+ if (findnextcolon(&obText) != 0) {
+ if (findnextcolon(&obText) != 0) {
+ if (*obText != 0) {
+ usetext(obText);
hangonp(400);
putbackobstuff();
return;