Skip to content

Commit

Permalink
Fixed compile issue
Browse files Browse the repository at this point in the history
  • Loading branch information
philippeop committed Mar 13, 2013
1 parent e463a42 commit ab6b4df
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 0 additions & 2 deletions mongroup.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,6 @@ enum MonsterGroupType
GROUP_COUNT
};

MonsterGroup monsterGroupArray[GROUP_COUNT];

struct mongroup {
MonsterGroupType type; //
int posx, posy;
Expand Down
3 changes: 2 additions & 1 deletion mongroupdef.cpp
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
#include "game.h"
#include "setvector.h"

MonsterGroup monsterGroupArray[GROUP_COUNT];

//Adding a group:
// 1: Declare it in the MonsterGroupDefs enum in mongroup.h
// 2: Define it in here with the macro Group(your group, default monster)
// and AddMonster(your group, some monster, a frequency on 1000)

#define Group(group, defaultmon) monsterGroupArray[group].defaultMonster = defaultmon;
#define AddMonster(group, mon, freq) monsterGroupArray[group].monsters[mon] = freq;

Expand Down

0 comments on commit ab6b4df

Please sign in to comment.