summaryrefslogtreecommitdiff
path: root/src/map/quest.h
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2015-01-21 12:54:13 +0100
committerHaru <haru@dotalux.com>2015-01-24 00:46:08 +0100
commit49df787e2c2faa2621b5490c6e88c86a4b7a813f (patch)
tree00b612493d44b30e20afdaa049188e33f738df18 /src/map/quest.h
parent9eba944acb910141b305f6eb90081b126b08263c (diff)
downloadhercules-49df787e2c2faa2621b5490c6e88c86a4b7a813f.tar.gz
hercules-49df787e2c2faa2621b5490c6e88c86a4b7a813f.tar.bz2
hercules-49df787e2c2faa2621b5490c6e88c86a4b7a813f.tar.xz
hercules-49df787e2c2faa2621b5490c6e88c86a4b7a813f.zip
Reduced quest db memory usage by about 900kB
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/quest.h')
-rw-r--r--src/map/quest.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/map/quest.h b/src/map/quest.h
index db9ffa142..36ac69a53 100644
--- a/src/map/quest.h
+++ b/src/map/quest.h
@@ -8,7 +8,6 @@
#include "map.h" // TBL_PC
#include "../common/cbasetypes.h"
#include "../common/conf.h"
-#include "../common/mmo.h" // MAX_QUEST_OBJECTIVES
#define MAX_QUEST_DB (60355+1) // Highest quest ID + 1
@@ -18,12 +17,16 @@ struct quest_dropitem {
int rate;
};
+struct quest_objective {
+ int mob;
+ int count;
+};
+
struct quest_db {
int id;
unsigned int time;
- int mob[MAX_QUEST_OBJECTIVES];
- int count[MAX_QUEST_OBJECTIVES];
- int num_objectives;
+ int objectives_count;
+ struct quest_objective *objectives;
int dropitem_count;
struct quest_dropitem *dropitem;
//char name[NAME_LENGTH];