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:
@@ -12,18 +12,18 @@
|
||||
#include "graphutl.h"
|
||||
|
||||
/* Adventure globals */
|
||||
extern party_record_type far party;
|
||||
extern pc_record_type far adven[6];
|
||||
extern outdoor_record_type far outdoors[2][2];
|
||||
extern current_town_type far c_town;
|
||||
extern big_tr_type far t_d;
|
||||
extern town_item_list far t_i;
|
||||
extern unsigned char far out[96][96] ;
|
||||
extern unsigned char far out_e[96][96];
|
||||
extern setup_save_type far setup_save;
|
||||
extern stored_items_list_type far stored_items[3];
|
||||
extern stored_town_maps_type far maps;
|
||||
extern stored_outdoor_maps_type far o_maps;
|
||||
extern party_record_type party;
|
||||
extern pc_record_type adven[6];
|
||||
extern outdoor_record_type outdoors[2][2];
|
||||
extern current_town_type c_town;
|
||||
extern big_tr_type t_d;
|
||||
extern stored_items_list_type t_i;
|
||||
extern unsigned char out[96][96] ;
|
||||
extern unsigned char out_e[96][96];
|
||||
extern setup_save_type setup_save;
|
||||
extern stored_items_list_type stored_items[3];
|
||||
extern stored_town_maps_type maps;
|
||||
extern stored_outdoor_maps_type o_maps;
|
||||
extern pascal Boolean cd_event_filter();
|
||||
|
||||
extern Boolean dialog_not_toast;
|
||||
@@ -232,7 +232,7 @@ void edit_day()
|
||||
|
||||
cd_kill_dialog(917,0);
|
||||
|
||||
dialog_answer = minmax(0,500,dialog_answer);
|
||||
dialog_answer = minmax(1,500,dialog_answer)-1;
|
||||
|
||||
party.age = (long) (3700) * (long) (dialog_answer);
|
||||
}
|
||||
|
Reference in New Issue
Block a user