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 357520d4ee
commit e1aef75771
11 changed files with 480 additions and 1702 deletions

View File

@@ -17,7 +17,7 @@ extern HINSTANCE store_hInstance;
extern Boolean play_sounds,in_startup_mode;
extern HWND mainPtr;
extern Boolean gInBackground;
extern party_record_type far party;
extern party_record_type party;
extern Boolean cat,cow,chicken,dog,sheep,monsters_going;
extern short num_chirps_played,overall_mode;
@@ -25,7 +25,7 @@ short last_played = 10000;
short error_beeps = 0;
short store_last_sound_played = 0;
Boolean far always_asynch[100] = {FALSE,FALSE,FALSE,FALSE,FALSE,
Boolean always_asynch[100] = {FALSE,FALSE,FALSE,FALSE,FALSE,
TRUE,TRUE,FALSE,FALSE,FALSE,
TRUE,FALSE,FALSE,FALSE,FALSE, // 10
FALSE,FALSE,FALSE,FALSE,FALSE,
@@ -45,7 +45,7 @@ Boolean far always_asynch[100] = {FALSE,FALSE,FALSE,FALSE,FALSE,
TRUE,FALSE,FALSE,FALSE,FALSE,
FALSE,TRUE,FALSE,FALSE,FALSE, // 90
FALSE,FALSE,FALSE,FALSE,FALSE};
Boolean far load_when_play[100] = {
Boolean load_when_play[100] = {
0,0,1,1,1,0,0,1,1,1,
0,0,0,1,0,1,1,1,1,1,
1,1,0,1,1,1,1,0,1,1,
@@ -58,7 +58,7 @@ Boolean far load_when_play[100] = {
1,0,1,1,1,1,1,1,1,0
};
short far can_ignore[100] = {
short can_ignore[100] = {
0,0,0,0,0,5,3,0,0,0,
5,5,5,0,5,0,0,0,0,0,
0,0,5,0,0,0,0,0,0,2,