From bf5b2244c66d5da4d3495b3667908c83e07a7d80 Mon Sep 17 00:00:00 2001 From: Bertrand Augereau Date: Wed, 7 Sep 2011 04:00:56 +0200 Subject: DREAMWEB: Cleaning of 'useroutine' using new functions --- engines/dreamweb/use.cpp | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'engines/dreamweb') 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; -- cgit v1.2.3