aboutsummaryrefslogtreecommitdiff
path: root/engines/voyeur
diff options
context:
space:
mode:
authorStrangerke2016-01-12 11:19:39 +0100
committerStrangerke2016-01-12 11:19:39 +0100
commit8584315867961a01210bf961a490216e0308f6eb (patch)
tree6e448e2ae5560f0a5f10abef633fbae46da694c9 /engines/voyeur
parenta2cb8ddcdd4ddf64bac2470d5a7aa15b7ce81849 (diff)
downloadscummvm-rg350-8584315867961a01210bf961a490216e0308f6eb.tar.gz
scummvm-rg350-8584315867961a01210bf961a490216e0308f6eb.tar.bz2
scummvm-rg350-8584315867961a01210bf961a490216e0308f6eb.zip
VOYEUR: Reduce variable scope, fix typo in comment
Diffstat (limited to 'engines/voyeur')
-rw-r--r--engines/voyeur/voyeur_game.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/engines/voyeur/voyeur_game.cpp b/engines/voyeur/voyeur_game.cpp
index c7df924f7e..13ef31839a 100644
--- a/engines/voyeur/voyeur_game.cpp
+++ b/engines/voyeur/voyeur_game.cpp
@@ -404,8 +404,7 @@ void VoyeurEngine::doPiracy() {
fi._justifyHeight = 230;
// Loop through the piracy message array to draw each line
- int yp, idx;
- for (idx = 0, yp = 33; idx < 10; ++idx) {
+ for (int idx = 0, yp = 33; idx < 10; ++idx) {
fi._pos = Common::Point(0, yp);
_graphicsManager->_vPort->drawText(PIRACY_MESSAGE[idx]);
@@ -687,7 +686,7 @@ void VoyeurEngine::reviewTape() {
_eventsManager->_intPtr._flashTimer = 0;
_voy->_eventFlags &= ~EVTFLAG_TIME_DISABLED;
- // Play suond for the given duration
+ // Play sound for the given duration
_soundManager->setVOCOffset(_voy->_vocSecondsOffset);
_soundManager->startVOCPlay(_audioVideoId + 159);
uint32 secondsDuration = e._computerOff;