mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-23 12:32:34 +00:00
- Apparently, YASM is not a suitable substitute for NASM when doing Win32 builds.
- Removed extraneous printf parameter for Texman.Init startup message. - Added newlines to the ends of a few headers that were missing them. - Fixed more GCC errors/warnings. SVN r1232 (trunk)
This commit is contained in:
parent
9802278357
commit
00b21e4b96
15 changed files with 30 additions and 33 deletions
|
@ -181,21 +181,21 @@ if( NOT NO_ASM )
|
||||||
find_program( NASM_PATH NAMES ${NASM_NAMES} )
|
find_program( NASM_PATH NAMES ${NASM_NAMES} )
|
||||||
find_program( YASM_PATH yasm )
|
find_program( YASM_PATH yasm )
|
||||||
|
|
||||||
|
if( X64 )
|
||||||
if( YASM_PATH )
|
if( YASM_PATH )
|
||||||
set( ASSEMBLER ${YASM_PATH} )
|
set( ASSEMBLER ${YASM_PATH} )
|
||||||
else( YASM_PATH )
|
else( YASM_PATH )
|
||||||
if( X64 )
|
|
||||||
message( STATUS "Could not find YASM. Disabling assembly code." )
|
message( STATUS "Could not find YASM. Disabling assembly code." )
|
||||||
set( NO_ASM ON )
|
set( NO_ASM ON )
|
||||||
else( X64 )
|
|
||||||
if( NOT NASM_PATH )
|
|
||||||
message( STATUS "Could not find YASM or NASM. Disabling assembly code." )
|
|
||||||
set( NO_ASM ON )
|
|
||||||
else( NOT NASM_PATH )
|
|
||||||
set( ASSEMBLER ${NASM_PATH} )
|
|
||||||
endif( NOT NASM_PATH )
|
|
||||||
endif( X64 )
|
|
||||||
endif( YASM_PATH )
|
endif( YASM_PATH )
|
||||||
|
else( X64 )
|
||||||
|
if( NASM_PATH )
|
||||||
|
set( ASSEMBLER ${NASM_PATH} )
|
||||||
|
else( NASM_PATH )
|
||||||
|
message( STATUS "Could not find NASM. Disabling assembly code." )
|
||||||
|
set( NO_ASM ON )
|
||||||
|
endif( NASM_PATH )
|
||||||
|
endif( X64 )
|
||||||
endif( UNIX AND X64 )
|
endif( UNIX AND X64 )
|
||||||
|
|
||||||
# I think the only reason there was a version requirement was because the
|
# I think the only reason there was a version requirement was because the
|
||||||
|
|
|
@ -2481,7 +2481,7 @@ void D_DoomMain (void)
|
||||||
StartScreen->AppendStatusLine(temp);
|
StartScreen->AppendStatusLine(temp);
|
||||||
}
|
}
|
||||||
|
|
||||||
Printf ("Texman.Init: Init texture manager.\n", GameNames[gameinfo.gametype]);
|
Printf ("Texman.Init: Init texture manager.\n");
|
||||||
TexMan.Init();
|
TexMan.Init();
|
||||||
|
|
||||||
// [RH] Parse through all loaded mapinfo lumps
|
// [RH] Parse through all loaded mapinfo lumps
|
||||||
|
|
|
@ -23,7 +23,7 @@ class ARandomSpawner : public AActor
|
||||||
|
|
||||||
void PostBeginPlay()
|
void PostBeginPlay()
|
||||||
{
|
{
|
||||||
AActor *newmobj;
|
AActor *newmobj = NULL;
|
||||||
FDropItem *di; // di will be our drop item list iterator
|
FDropItem *di; // di will be our drop item list iterator
|
||||||
FDropItem *drop; // while drop stays as the reference point.
|
FDropItem *drop; // while drop stays as the reference point.
|
||||||
int n=0;
|
int n=0;
|
||||||
|
|
|
@ -36,8 +36,6 @@
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include "doomtype.h"
|
#include "doomtype.h"
|
||||||
|
|
||||||
enum ESSType;
|
|
||||||
|
|
||||||
// PNG Writing --------------------------------------------------------------
|
// PNG Writing --------------------------------------------------------------
|
||||||
|
|
||||||
// Start writing an 8-bit palettized PNG file.
|
// Start writing an 8-bit palettized PNG file.
|
||||||
|
|
|
@ -221,8 +221,8 @@ player_t::player_t()
|
||||||
momy(0),
|
momy(0),
|
||||||
centering(0),
|
centering(0),
|
||||||
turnticks(0),
|
turnticks(0),
|
||||||
oldbuttons(0),
|
|
||||||
attackdown(0),
|
attackdown(0),
|
||||||
|
oldbuttons(0),
|
||||||
health(0),
|
health(0),
|
||||||
inventorytics(0),
|
inventorytics(0),
|
||||||
CurrentPlayerClass(0),
|
CurrentPlayerClass(0),
|
||||||
|
|
|
@ -342,7 +342,10 @@ int S_PickReplacement (int refid)
|
||||||
|
|
||||||
unsigned int S_GetMSLength(FSoundID sound)
|
unsigned int S_GetMSLength(FSoundID sound)
|
||||||
{
|
{
|
||||||
if (sound < 0 || sound >= S_sfx.Size()) return 0;
|
if ((unsigned int)sound >= S_sfx.Size())
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
sfxinfo_t *sfx = &S_sfx[sound];
|
sfxinfo_t *sfx = &S_sfx[sound];
|
||||||
|
|
||||||
|
|
|
@ -44,6 +44,7 @@ extern HWND Window;
|
||||||
#define FALSE 0
|
#define FALSE 0
|
||||||
#define TRUE 1
|
#define TRUE 1
|
||||||
#endif
|
#endif
|
||||||
|
#include <malloc.h>
|
||||||
|
|
||||||
#include "templates.h"
|
#include "templates.h"
|
||||||
#include "fmodsound.h"
|
#include "fmodsound.h"
|
||||||
|
|
|
@ -33,6 +33,7 @@
|
||||||
|
|
||||||
// HEADER FILES ------------------------------------------------------------
|
// HEADER FILES ------------------------------------------------------------
|
||||||
|
|
||||||
|
#include <malloc.h>
|
||||||
#include "i_musicinterns.h"
|
#include "i_musicinterns.h"
|
||||||
#include "templates.h"
|
#include "templates.h"
|
||||||
#include "doomdef.h"
|
#include "doomdef.h"
|
||||||
|
|
|
@ -346,7 +346,7 @@ bool ST_Responder (event_t *ev)
|
||||||
static int counts[] = { countof(DoomCheats), countof(HereticCheats), countof(HexenCheats),
|
static int counts[] = { countof(DoomCheats), countof(HereticCheats), countof(HexenCheats),
|
||||||
countof(StrifeCheats), countof(ChexCheats), countof(SpecialCheats) };
|
countof(StrifeCheats), countof(ChexCheats), countof(SpecialCheats) };
|
||||||
|
|
||||||
for (int i=0; i<countof(cheatlists); i++)
|
for (size_t i=0; i<countof(cheatlists); i++)
|
||||||
{
|
{
|
||||||
if (CheatCheckList(ev, cheatlists[i], counts[i])) return true;
|
if (CheatCheckList(ev, cheatlists[i], counts[i])) return true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -41,7 +41,7 @@
|
||||||
|
|
||||||
|
|
||||||
FWarpTexture::FWarpTexture (FTexture *source)
|
FWarpTexture::FWarpTexture (FTexture *source)
|
||||||
: SourcePic (source), Pixels (0), Spans (0), GenTime (0), Speed (1.f)
|
: GenTime (0), SourcePic (source), Pixels (0), Spans (0), Speed (1.f)
|
||||||
{
|
{
|
||||||
CopySize(source);
|
CopySize(source);
|
||||||
bNoDecals = source->bNoDecals;
|
bNoDecals = source->bNoDecals;
|
||||||
|
|
|
@ -409,7 +409,8 @@ static void ParseActionDef (FScanner &sc, PClass *cls)
|
||||||
if (hasdefaults)
|
if (hasdefaults)
|
||||||
{
|
{
|
||||||
sym->defaultparameterindex = StateParameters.Size();
|
sym->defaultparameterindex = StateParameters.Size();
|
||||||
for(int i = 0; i < DefaultParams.Size(); i++) StateParameters.Push(DefaultParams[i]);
|
for(unsigned int i = 0; i < DefaultParams.Size(); i++)
|
||||||
|
StateParameters.Push(DefaultParams[i]);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
@ -1768,7 +1768,7 @@ void V_InitCustomFonts()
|
||||||
return;
|
return;
|
||||||
|
|
||||||
wrong:
|
wrong:
|
||||||
sc.ScriptError ("Invalid combination of properties in font '%s'", namebuffer);
|
sc.ScriptError ("Invalid combination of properties in font '%s'", namebuffer.GetChars());
|
||||||
}
|
}
|
||||||
|
|
||||||
//==========================================================================
|
//==========================================================================
|
||||||
|
|
|
@ -114,13 +114,6 @@ enum
|
||||||
HUD_HorizCenter
|
HUD_HorizCenter
|
||||||
};
|
};
|
||||||
|
|
||||||
// Screenshot buffer image data types
|
|
||||||
enum ESSType
|
|
||||||
{
|
|
||||||
SS_PAL,
|
|
||||||
SS_RGB,
|
|
||||||
SS_BGRA
|
|
||||||
};
|
|
||||||
|
|
||||||
class FFont;
|
class FFont;
|
||||||
struct FRemapTable;
|
struct FRemapTable;
|
||||||
|
|
Loading…
Reference in a new issue