- Linux and GCC fixes

SVN r931 (trunk)
This commit is contained in:
Christoph Oelckers 2008-04-20 19:39:08 +00:00
parent 816ea09cc4
commit 2a7ff45829
5 changed files with 13 additions and 8 deletions

View File

@ -17,7 +17,7 @@ endif
#endif
CFLAGS += -MMD -DHAVE_FILELENGTH -D__forceinline=inline `sdl-config --cflags` `pkg-config gtk+-2.0 --cflags`
CFLAGS += -Dstricmp=strcasecmp -Dstrnicmp=strncasecmp -DNEED_STRUPR
LDFLAGS += -lz -ljpeg -`sdl-config --libs` `pkg-config gtk+-2.0 --libs` $(FMOD_PREFIX)/lib/libfmodex.so
LDFLAGS += -lz -ljpeg `sdl-config --libs` `pkg-config gtk+-2.0 --libs` $(FMOD_PREFIX)/lib/libfmodex.so
NASMFLAGS += -f elf -DM_TARGET_LINUX
SRCDIRS = src/ $(addprefix src/,g_doom/ g_heretic/ g_hexen/ g_raven/ g_shared/ g_strife/ oplsynth/ sound/ sdl/ textures/ thingdef/ xlat/ timidity/)

View File

@ -845,13 +845,16 @@ int PrintString (int printlevel, const char *outline)
//#endif
}
I_PrintStr (outline);
AddToConsole (printlevel, outline);
if (vidactive && screen && screen->Font)
if (printlevel != PRINT_LOG)
{
C_AddNotifyString (printlevel, outline);
maybedrawnow (false, false);
I_PrintStr (outline);
AddToConsole (printlevel, outline);
if (vidactive && screen && screen->Font)
{
C_AddNotifyString (printlevel, outline);
maybedrawnow (false, false);
}
}
return (int)strlen (outline);
}

View File

@ -183,6 +183,7 @@ enum
#define PRINT_HIGH 2 // critical messages
#define PRINT_CHAT 3 // chat messages
#define PRINT_TEAMCHAT 4 // chat messages from a teammate
#define PRINT_LOG 5 // only to logfile
#define PRINT_BOLD 200 // What Printf_Bold used
struct PalEntry

View File

@ -41,6 +41,7 @@
#include "w_wad.h"
#include "v_text.h"
#include "timidity/timidity.h"
#include <errno.h>
// MACROS ------------------------------------------------------------------

View File

@ -68,7 +68,7 @@ public:
FreeBuffer = false;
}
~FBitmap()
virtual ~FBitmap()
{
Destroy();
}