Fixed several bugs in Win32 Char Editor :

- Corrected the edit day option so that it sets the day to the one specified and not to the day after.
- Fixed the saving function : now changes can be saved outdoors (that was crashing at save stored_items making give_map non functional).
That also fixes the stored items arrays being filled with items from current town.
- If in a scenario, the editor nows display the name of the town the party is in or if they are outdoor.
- Giving PC items from a Mac made scenario doesn't crash the game anymore (overall Mac scenario support added)
- Cleaned the ressource file. The executable is now smaller.
- On give items : the editor now tries to load the bladbase.exs file if the scenario file is not found. If can't locate the bladbase, the items menus are grayed.

git-svn-id: http://openexile.googlecode.com/svn/trunk@29 4ebdad44-0ea0-11de-aab3-ff745001d230
This commit is contained in:
Chokboyz
2009-04-24 00:17:12 +00:00
parent fad42597a6
commit e2807dbeed
11 changed files with 480 additions and 1702 deletions

View File

@@ -132,19 +132,6 @@ typedef struct {
} creature_start_type;
typedef struct {
short variety, item_level;
char awkward, bonus, protection, charges, type;
unsigned char graphic_num,ability, type_flag, is_special;
short value;
Boolean identified, magic;
unsigned char weight, description_flag;
char full_name[25], name[15];
unsigned char reserved1,reserved2;
unsigned char magic_use_type, ability_strength, treas_class, real_abil;
} short_item_record_type;
typedef struct {
short variety, item_level;
char awkward, bonus, protection, charges, type, magic_use_type;
@@ -389,9 +376,7 @@ typedef struct {
char scen_name[256];
} party_record_type;
typedef struct {
char town_maps[100][8][64];
} stored_town_maps_type;
typedef struct { char town_maps[200][8][64];} stored_town_maps_type;
typedef struct {
char town_strs[180][256];
} piles_of_stuff_dumping_type;
@@ -401,16 +386,16 @@ typedef struct {
scen_item_data_type scen_item_list;
} piles_of_stuff_dumping_type2;
typedef struct {
char far talk_strs[170][256];
char talk_strs[170][256];
} piles_of_stuff_dumping_type3;
typedef struct {
char out_strs[9][256];
} outdoor_strs_type;
typedef struct {
outdoor_strs_type far outdoor_text[2][2];
outdoor_strs_type outdoor_text[2][2];
} piles_of_stuff_dumping_type4;
typedef struct {
char far scen_strs[160][256];
char scen_strs[160][256];
} piles_of_stuff_dumping_type5;
typedef struct {
@@ -431,12 +416,6 @@ typedef struct {
unsigned char setup[4][64][64];
} setup_save_type;
typedef struct {
item_record_type items[NUM_TOWN_ITEMS];
} town_item_list;
typedef struct {short i;} flag_type;
typedef struct {unsigned char pattern[9][9];} effect_pat_type;
typedef struct {
@@ -447,7 +426,6 @@ typedef struct {
char outdoor_maps[100][6][48];
} stored_outdoor_maps_type;
short s_pow(short x,short y);
short a_v(short x);
short ex_abs(short x);