From 26f5315e65c74c269b6eb1a190cb54fcf19d16a7 Mon Sep 17 00:00:00 2001 From: Treeki Date: Fri, 28 Sep 2012 05:24:15 +0200 Subject: added level flags to levelinfo --- src/levelinfo.cpp | 2 ++ src/levelinfo.h | 2 +- src/levelinfo_old.h | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) (limited to 'src') 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; }; -- cgit v1.2.3