aboutsummaryrefslogtreecommitdiff
path: root/engines/cryo
diff options
context:
space:
mode:
authorEugene Sandulenko2016-08-18 13:15:16 +0200
committerEugene Sandulenko2017-01-25 22:41:53 +0100
commit517bcad68420855b09d52f64dc67637b260f9b45 (patch)
treeb48cd78fef674d7f0b238ece7323722b70fa0907 /engines/cryo
parent59c90d21ad8f1f1e741cfb4bed3e9e099b37766a (diff)
downloadscummvm-rg350-517bcad68420855b09d52f64dc67637b260f9b45.tar.gz
scummvm-rg350-517bcad68420855b09d52f64dc67637b260f9b45.tar.bz2
scummvm-rg350-517bcad68420855b09d52f64dc67637b260f9b45.zip
CRYO: Fix warnings
Diffstat (limited to 'engines/cryo')
-rw-r--r--engines/cryo/defs.h36
-rw-r--r--engines/cryo/eden.cpp2
-rw-r--r--engines/cryo/eden.h2
-rw-r--r--engines/cryo/module.mk2
4 files changed, 21 insertions, 21 deletions
diff --git a/engines/cryo/defs.h b/engines/cryo/defs.h
index 4c9a2026ae..ae6ce7f4cf 100644
--- a/engines/cryo/defs.h
+++ b/engines/cryo/defs.h
@@ -55,7 +55,7 @@ enum Areas {
arWhiteArch,
arMoorkusLair
};
-};
+}
#define MKRM(a,l) (((a) << 8) | (l))
@@ -154,7 +154,7 @@ enum Objects {
obTablet5,
obTablet6
};
-};
+}
enum PERSO {
PER_ROI = 0,
@@ -242,7 +242,7 @@ enum PersonId {
pidDinosaur, // different species of friendly dino
pidEnemy // different species of enemy dino
};
-};
+}
// person in room mask bits
namespace PersonMask {
@@ -263,7 +263,7 @@ enum PersonMask {
pmEnemy = 0x2000,
pmMorkus = 0x4000
};
-};
+}
namespace PersonFlags {
enum PersonFlags {
@@ -289,7 +289,7 @@ enum PersonFlags {
pfInParty = 0x40,
pf80 = 0x80
};
-};
+}
#pragma pack(push, 1)
struct perso_t {
@@ -320,7 +320,7 @@ enum ObjectFlags {
ofFlag1 = 1,
ofInHands = 2 // Currently holding this object in hands
};
-};
+}
#define MAX_OBJECTS 42
struct object_t {
@@ -339,7 +339,7 @@ enum DialogFlags {
dfRepeatable = 0x40,
dfSpoken = 0x80
};
-};
+}
namespace DialogType {
enum DialogType {
@@ -351,7 +351,7 @@ enum DialogType {
dtInspect,
dtHint
};
-};
+}
struct dial_t {
char flags; // 0-3 - action index, 4 - highest bit of contidion index, rest is DialogFlags
@@ -415,7 +415,7 @@ enum RoomFlags {
rf40 = 0x40,
rf80 = 0x80
};
-};
+}
struct room_t {
unsigned char ff_0;
@@ -446,7 +446,7 @@ enum AreaFlags {
TyrannSighted = 0x4000,
afFlag8000 = 0x8000
};
-};
+}
namespace AreaType {
enum AreaType {
@@ -454,7 +454,7 @@ enum AreaType {
atValley = 2,
atCave = 3
};
-};
+}
struct area_t {
unsigned char num;
@@ -483,7 +483,7 @@ enum ValleyNews {
vnHidden = 0x80,
vnEnd = 0xFF
};
-};
+}
namespace DisplayFlags {
enum DisplayFlags {
@@ -496,7 +496,7 @@ enum DisplayFlags {
dfFlag40 = 0x40,
dfFlag80 = 0x80
};
-};
+}
namespace DrawFlags {
enum DrawFlags {
@@ -507,7 +507,7 @@ enum DrawFlags {
drDrawMenu = 0x10,
drDrawFlag20 = 0x20
};
-};
+}
namespace MenuFlags {
enum MenuFlags {
@@ -517,7 +517,7 @@ enum MenuFlags {
mfFlag8 = 8,
mfFlag10 = 0x10
};
-};
+}
namespace MusicType {
enum MusicType { //TODO: same as DialogType?
@@ -527,7 +527,7 @@ enum MusicType { //TODO: same as DialogType?
mtEvent = 4,
mtFF = 0xFF
};
-};
+}
namespace EventType {
enum EventType {
@@ -549,7 +549,7 @@ enum EventType {
etEvent12 = 18,
etGotoArea = 0x80 // + area id
};
-};
+}
namespace GameFlags {
enum GameFlags {
@@ -570,7 +570,7 @@ enum GameFlags {
gfFlag4000 = 0x4000,
gfFlag8000 = 0x8000
};
-};
+}
struct global_t {
unsigned char areaNum;
diff --git a/engines/cryo/eden.cpp b/engines/cryo/eden.cpp
index d5253d3907..98b45d7d0d 100644
--- a/engines/cryo/eden.cpp
+++ b/engines/cryo/eden.cpp
@@ -7698,7 +7698,7 @@ skip:
return;
#define CLFile_Write(h, ptr, size) \
- debug("writing 0x%X bytes", *size); \
+ debug("writing 0x%lX bytes", *size); \
h->write(ptr, *size);
vavaoffsetout();
diff --git a/engines/cryo/eden.h b/engines/cryo/eden.h
index c24f77abca..ae7afe396b 100644
--- a/engines/cryo/eden.h
+++ b/engines/cryo/eden.h
@@ -11,4 +11,4 @@ public:
class EdenGameImpl;
-} \ No newline at end of file
+}
diff --git a/engines/cryo/module.mk b/engines/cryo/module.mk
index 4cda96472b..b7a81fa7c8 100644
--- a/engines/cryo/module.mk
+++ b/engines/cryo/module.mk
@@ -1,8 +1,8 @@
MODULE := engines/cryo
MODULE_OBJS = \
- cryo.o \
eden.o \
+ cryo.o \
detection.o
# This module can be built as a plugin