- Got the new dialog engine into a semi-functional, mostly crash-free state!
- Created constants for the number of monster and terrain sheets, so that we can easily add more. - Added init_sheets() function to initialize cPict's static variables. - Moved the code for checking for an interrupt key out into a separate function so that it can be used elsewhere as well. - Added error checking to make sure a sheet exists before drawing from it. (Note: Will need to catch the exception and draw a blank rather than simply terminating.) - Fixed bug where status icons were drawn instead of terrain map icons. git-svn-id: http://openexile.googlecode.com/svn/trunk@99 4ebdad44-0ea0-11de-aab3-ff745001d230
This commit is contained in:
@@ -58,7 +58,7 @@ bool init_once = false;
|
||||
GWorldPtr spec_scen_g; // not actually needed; just here to silence compiler because it's reference in fileio.h
|
||||
// (actually, it WILL be needed eventually; the same is true about most of the rest of these.)
|
||||
GWorldPtr items_gworld,tiny_obj_gworld,fields_gworld,roads_gworld,boom_gworld,missiles_gworld;
|
||||
GWorldPtr monst_gworld[11],terrain_gworld[7],anim_gworld,talkfaces_gworld;
|
||||
GWorldPtr monst_gworld[NUM_MONST_SHEETS],terrain_gworld[NUM_TER_SHEETS],anim_gworld,talkfaces_gworld;
|
||||
GWorldPtr vehicle_gworld, small_ter_gworld;
|
||||
|
||||
void init_dialogs(){
|
||||
|
Reference in New Issue
Block a user