aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authoruruk2014-02-16 15:24:28 +0100
committeruruk2014-02-16 15:24:28 +0100
commit9b51c60beb44a3bab6dc51dc53c10dddecc58299 (patch)
tree64930e0cceed7fe9ee7227055efb9ae3a7fd03ec /engines
parent58296158200ae9dd441dbb7f77d8299649c94098 (diff)
parent8df46608ad3f56012163b2e4e19d748bb187466d (diff)
downloadscummvm-rg350-9b51c60beb44a3bab6dc51dc53c10dddecc58299.tar.gz
scummvm-rg350-9b51c60beb44a3bab6dc51dc53c10dddecc58299.tar.bz2
scummvm-rg350-9b51c60beb44a3bab6dc51dc53c10dddecc58299.zip
Merge branch 'master' of https://github.com/scummvm/scummvm
Diffstat (limited to 'engines')
-rw-r--r--engines/queen/cutaway.cpp3
-rw-r--r--engines/queen/detection.cpp8
-rw-r--r--engines/queen/graphics.cpp4
-rw-r--r--engines/queen/talk.cpp3
4 files changed, 6 insertions, 12 deletions
diff --git a/engines/queen/cutaway.cpp b/engines/queen/cutaway.cpp
index 1e53c00564..ade1220a5e 100644
--- a/engines/queen/cutaway.cpp
+++ b/engines/queen/cutaway.cpp
@@ -552,7 +552,6 @@ void Cutaway::dumpCutawayAnim(CutawayAnim &anim) {
const byte *Cutaway::handleAnimation(const byte *ptr, CutawayObject &object) {
// lines 1517-1770 in cutaway.c
int frameCount = 0;
- int header = 0;
int i;
CutawayAnim objAnim[56];
@@ -560,7 +559,7 @@ const byte *Cutaway::handleAnimation(const byte *ptr, CutawayObject &object) {
// Read animation frames
for (;;) {
- header = (int16)READ_BE_INT16(ptr);
+ int header = (int16)READ_BE_INT16(ptr);
ptr += 2;
if (-2 == header)
diff --git a/engines/queen/detection.cpp b/engines/queen/detection.cpp
index 57b314c088..9c37fec754 100644
--- a/engines/queen/detection.cpp
+++ b/engines/queen/detection.cpp
@@ -172,35 +172,31 @@ static const QueenGameDescription gameDescriptions[] = {
},
},
-#if 0
// DOS Floppy - French
{
{
"queen",
"Floppy",
- AD_ENTRY1s("queen.1", NULL, 22157304), // TODO: Fill in correct MD5
+ AD_ENTRY1s("queen.1", "f5e827645d3c887be3bdf4729d847756", 22157304),
Common::FR_FRA,
Common::kPlatformDOS,
ADGF_NO_FLAGS,
GUIO1(GUIO_NOSPEECH)
},
},
-#endif
-#if 0
// DOS CD - French
{
{
"queen",
"Talkie",
- AD_ENTRY1s("queen.1", NULL, 186689095), // TODO: Fill in correct MD5
+ AD_ENTRY1s("queen.1", "6fd5486a0db75bae2e023b575c3d6a5d", 186689095),
Common::FR_FRA,
Common::kPlatformDOS,
ADGF_NO_FLAGS,
GUIO1(GAMEOPTION_ALT_INTRO)
},
},
-#endif
#if 0
// DOS Floppy - German
diff --git a/engines/queen/graphics.cpp b/engines/queen/graphics.cpp
index 70f7d7c94b..d98ddd635f 100644
--- a/engines/queen/graphics.cpp
+++ b/engines/queen/graphics.cpp
@@ -522,7 +522,7 @@ void Graphics::setBobText(const BobSlot *pbs, const char *text, int textX, int t
// Calc text position
- short x, y, width, height;
+ short x, y, width;
if (flags) {
if (flags == 2)
@@ -540,7 +540,7 @@ void Graphics::setBobText(const BobSlot *pbs, const char *text, int textX, int t
BobFrame *pbf = _vm->bankMan()->fetchFrame(pbs->frameNum);
width = (pbf->width * pbs->scale) / 100;
- height = (pbf->height * pbs->scale) / 100;
+ short height = (pbf->height * pbs->scale) / 100;
y = y - height - 16 - lineCount * 9;
}
diff --git a/engines/queen/talk.cpp b/engines/queen/talk.cpp
index 1531510ba4..dd3ce0022e 100644
--- a/engines/queen/talk.cpp
+++ b/engines/queen/talk.cpp
@@ -1252,7 +1252,6 @@ int16 Talk::selectSentence() {
_vm->input()->clearKeyVerb();
if (sentenceCount > 0) {
- int zone = 0;
int oldZone = 0;
while (0 == selectedSentence) {
@@ -1263,7 +1262,7 @@ int16 Talk::selectSentence() {
_vm->update();
Common::Point mouse = _vm->input()->getMousePos();
- zone = _vm->grid()->findZoneForPos(GS_PANEL, mouse.x, mouse.y);
+ int zone = _vm->grid()->findZoneForPos(GS_PANEL, mouse.x, mouse.y);
int mouseButton = _vm->input()->mouseButton();
_vm->input()->clearMouseButton();