- Fixed some bugs in the dialog code.

- Dialogs in the scenario editor now show custom graphics.
- Scenario editor now works properly as a Universal binary.
- Started refactoring the structs into classes; so far this has only been applied to the game.
- Files now show proper icons (applications already did).
- Probably other things that I have forgotten.

Still not completely stable, but much closer.

git-svn-id: http://openexile.googlecode.com/svn/trunk@27 4ebdad44-0ea0-11de-aab3-ff745001d230
This commit is contained in:
2009-04-21 20:02:07 +00:00
parent 7573c1ed98
commit a2c2a85a8e
63 changed files with 1741 additions and 1267 deletions

View File

@@ -1,4 +1,7 @@
//#include "item.h"
#include "boe.global.h"
#include "boe.party.h"
#include "boe.town.h"
@@ -27,7 +30,7 @@ extern pc_record_type adven[6];
extern big_tr_type t_d;
extern Boolean registered;
extern WindowPtr mainPtr;
extern scenario_data_type scenario;
extern cScenario scenario;
Str255 answer;
@@ -91,7 +94,7 @@ void DSG(short item_num,unsigned char *flip_bit,short dialog_num,short what_spec
{
short choice;
Boolean did_give;
item_record_type item;
cItemRec item;
item = get_stored_item(item_num);
if (item_num == 0)
@@ -103,7 +106,7 @@ void DSG(short item_num,unsigned char *flip_bit,short dialog_num,short what_spec
if (item.variety == 0)
did_give = TRUE;
else did_give = give_to_party(item,0);
else did_give = give_to_party(item,0);
if (did_give == TRUE) {
party.food += amt_food;
party.gold += amt_gold;