aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorFilippos Karapetis2011-12-05 21:50:57 +0200
committerFilippos Karapetis2011-12-05 21:50:57 +0200
commit652c025db04e3283a97198e82be546f82062b923 (patch)
treef26976fda376e6b98fc797abf338a5f29f3781c7 /engines
parentf0fc910d28f4e44f82f17c0bae14ae57aee5cf17 (diff)
downloadscummvm-rg350-652c025db04e3283a97198e82be546f82062b923.tar.gz
scummvm-rg350-652c025db04e3283a97198e82be546f82062b923.tar.bz2
scummvm-rg350-652c025db04e3283a97198e82be546f82062b923.zip
DREAMWEB: Merged several simple NPC functions into genericPerson()
Diffstat (limited to 'engines')
-rw-r--r--engines/dreamweb/people.cpp18
-rw-r--r--engines/dreamweb/stubs.h4
2 files changed, 5 insertions, 17 deletions
diff --git a/engines/dreamweb/people.cpp b/engines/dreamweb/people.cpp
index 31229842a9..ebf1adfec2 100644
--- a/engines/dreamweb/people.cpp
+++ b/engines/dreamweb/people.cpp
@@ -61,13 +61,13 @@ static void (DreamGenContext::*reelCallbacksCPP[57])(ReelRoutine &) = {
&DreamGenContext::eden, /*&DreamGenContext::edenInBath*/NULL,
&DreamGenContext::sparky, &DreamGenContext::smokeBloke,
&DreamGenContext::manAsleep, &DreamGenContext::drunk,
- /*&DreamGenContext::receptionist*/NULL, &DreamGenContext::maleFan,
- &DreamGenContext::femaleFan, /*&DreamGenContext::louis*/NULL,
+ /*&DreamGenContext::receptionist*/NULL, &DreamGenContext::genericPerson /*maleFan*/,
+ &DreamGenContext::genericPerson /*femaleFan*/, /*&DreamGenContext::louis*/NULL,
/*&DreamGenContext::louisChair*/NULL, /*&DreamGenContext::soldier1*/NULL,
/*&DreamGenContext::bossMan*/NULL, /*&DreamGenContext::interviewer*/NULL,
/*&DreamGenContext::heavy*/NULL, /*&DreamGenContext::manAsleep2*/NULL,
/*&DreamGenContext::manSatStill*/NULL, /*&DreamGenContext::drinker*/NULL,
- /*&DreamGenContext::bartender*/NULL, &DreamGenContext::otherSmoker,
+ /*&DreamGenContext::bartender*/NULL, &DreamGenContext::genericPerson /*otherSmoker*/,
/*&DreamGenContext::tattooMan*/NULL, /*&DreamGenContext::attendant*/NULL,
/*&DreamGenContext::keeper*/NULL, /*&DreamGenContext::candles1*/NULL,
/*&DreamGenContext::smallcandle*/NULL, &DreamGenContext::security,
@@ -225,7 +225,7 @@ void DreamGenContext::sparkyDrip(ReelRoutine &routine) {
playChannel0(14, 0);
}
-void DreamGenContext::otherSmoker(ReelRoutine &routine) {
+void DreamGenContext::genericPerson(ReelRoutine &routine) {
showGameReel(&routine);
addToPeopleList(&routine);
}
@@ -250,16 +250,6 @@ void DreamGenContext::eden(ReelRoutine &routine) {
addToPeopleList(&routine);
}
-void DreamGenContext::femaleFan(ReelRoutine &routine) {
- showGameReel(&routine);
- addToPeopleList(&routine);
-}
-
-void DreamGenContext::maleFan(ReelRoutine &routine) {
- showGameReel(&routine);
- addToPeopleList(&routine);
-}
-
void DreamGenContext::sparky(ReelRoutine &routine) {
if (data.word(kCard1money))
routine.b7 = 3;
diff --git a/engines/dreamweb/stubs.h b/engines/dreamweb/stubs.h
index 8ee093d253..73bd68e841 100644
--- a/engines/dreamweb/stubs.h
+++ b/engines/dreamweb/stubs.h
@@ -393,12 +393,10 @@
bool checkSpeed(ReelRoutine &routine);
void checkSpeed();
void sparkyDrip(ReelRoutine &routine);
- void otherSmoker(ReelRoutine &routine);
+ void genericPerson(ReelRoutine &routine);
void gamer(ReelRoutine &routine);
void eden(ReelRoutine &routine);
void sparky(ReelRoutine &routine);
- void femaleFan(ReelRoutine &routine);
- void maleFan(ReelRoutine &routine);
void rockstar(ReelRoutine &routine);
void madmansTelly(ReelRoutine &routine);
void smokeBloke(ReelRoutine &routine);