summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2012-09-28 05:24:15 +0200
committerTreeki <treeki@gmail.com>2012-09-28 05:24:15 +0200
commit26f5315e65c74c269b6eb1a190cb54fcf19d16a7 (patch)
tree2cd64ab216b6e6b1cf35fb79c3fe9f138c1f83a1 /src
parent69bfd1aa1b0a3e24160f4fe9fd583664cc23b2c9 (diff)
downloadkamek-26f5315e65c74c269b6eb1a190cb54fcf19d16a7.tar.gz
kamek-26f5315e65c74c269b6eb1a190cb54fcf19d16a7.zip
added level flags to levelinfo
Diffstat (limited to '')
-rw-r--r--src/levelinfo.cpp2
-rw-r--r--src/levelinfo.h2
-rw-r--r--src/levelinfo_old.h2
3 files changed, 4 insertions, 2 deletions
diff --git a/src/levelinfo.cpp b/src/levelinfo.cpp
index fd147f3..8ce2845 100644
--- a/src/levelinfo.cpp
+++ b/src/levelinfo.cpp
@@ -12,6 +12,8 @@ void dLevelInfo_c::load(void *buffer) {
for (int lev = 0; lev < thisSect->levelCount; lev++) {
entry_s *level = &levels[lev];
+ SetSomeConditionShit(level->worldSlot, level->levelSlot, level->flags);
+
char *name = (char*)getNameForLevel(level);
for (int i = 0; i < level->nameLength+1; i++) {
diff --git a/src/levelinfo.h b/src/levelinfo.h
index 8d8a4e5..20628d9 100644
--- a/src/levelinfo.h
+++ b/src/levelinfo.h
@@ -22,7 +22,7 @@ public:
u8 displayLevel;
u8 nameLength;
u8 reserved3;
- u16 reserved4;
+ u16 flags;
u32 nameOffset;
};
diff --git a/src/levelinfo_old.h b/src/levelinfo_old.h
index 50760c5..ed43757 100644
--- a/src/levelinfo_old.h
+++ b/src/levelinfo_old.h
@@ -20,7 +20,7 @@ struct LevelInfo_Entry {
u8 displayLevel;
u8 nameLength;
u8 reserved3;
- u16 reserved4;
+ u16 flags;
u32 nameOffset;
};