Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+
#ifdef WIN32
#define UINT8 WIN32API_UINT8
#define UINT16 WIN32API_UINT16
extern "C" {
#include "zlib.h"
#include "png.h"
- #include "jpeglib.h"
+ #ifdef WIN32
+ #define INT32 INT32_jpeg
+ #include "jpeglib.h"
+ #undef INT32
+ #else
+ #include "jpeglib.h"
+ #endif
}
static bool load_image(const char * fname, TGAImageRec & tex);
extern bool vblsync;
extern bool stillloading;
extern bool showpoints;
+extern bool showdamagebar;
extern bool alwaysblur;
extern bool immediate;
extern bool velocityblur;
#include "gamegl.h"
#include "MacCompatibility.h"
+
#ifdef WIN32
#include <shellapi.h>
#endif
texttoggle=1;
alwaysblur=0;
showpoints=0;
+ showdamagebar=0;
immediate=0;
velocityblur=0;
opstream << KeyToChar(game.attackkey);
opstream << "\nChat key:\n";
opstream << KeyToChar(game.chatkey);
+ opstream << "\nDamage bar:\n";
+ opstream << showdamagebar;
opstream.close();
}
if(ipstream){
ipstream.ignore(256,'\n');
ipstream >> string;
game.chatkey=CharToKey(string);
+ ipstream.ignore(256,'\n');
+ ipstream.ignore(256,'\n');
+ ipstream >> i;
+ showdamagebar = (i != 0);
ipstream.close();
if(detail>2)detail=2;
if (!SetUp (game))
return 42;
- while (!gDone&&!game.quit&&(!game.tryquit||!game.registered))
+ while (!gDone&&!game.quit&&(!game.tryquit))
{
if (IsFocused())
{
}
}
+
bool LoadImage(const char * fname, TGAImageRec & tex)
{
bool res = true;