Formerly there were three separate copies of the dialog code; now there's only one. It's still quite rough around the edges, though – the edit terrain dialog causes the scenario editor to crash, and for some reason the dialog controls are not drawn in the game or in the character editor. I am still working to resolve this. It can't be seen in the diff, since it involves a binary file, but the resources representing dialogs for the character editor were altered. Basically, every text item with a label of "0_105" was changed to "0_150", and each one with a label of "0_106" was changed to "0_151". The reason for this is a conflict between the meaning of those two labels in the character editor and in the scenario editor and the game. In addition to the consolidation of the dialog code, I have made alterations that should theoretically allow the scenario editor to draw custom graphics in its dialogs. I am uncertain that this works, though, since the scenario editor is now failing to FIND the custom graphics. git-svn-id: http://openexile.googlecode.com/svn/trunk@22 4ebdad44-0ea0-11de-aab3-ff745001d230
15 lines
316 B
C
15 lines
316 B
C
/*
|
|
* mathutil.h
|
|
* BoE
|
|
*
|
|
* Created by Celtic Minstrel on 16/04/09.
|
|
*
|
|
*/
|
|
|
|
short get_ran (short times,short min,short max);
|
|
short s_pow(short x,short y);
|
|
short s_sqrt(short val);
|
|
short max(short a,short b);
|
|
short min(short a,short b);
|
|
short minmax(short min,short max,short k);
|
|
short move_to_zero(short val); |