mirror of
https://github.com/id-Software/DOOM-3-BFG.git
synced 2025-03-13 22:22:05 +00:00
Replaced ( void ) with ()
This commit is contained in:
parent
f6f02b7c71
commit
352df659a8
39 changed files with 187 additions and 188 deletions
|
@ -211,7 +211,7 @@ void DoomInterface::Shutdown() {
|
|||
lastTicRun = 0;
|
||||
}
|
||||
|
||||
qboolean G_CheckDemoStatus( void );
|
||||
qboolean G_CheckDemoStatus();
|
||||
|
||||
void DoomInterface::QuitCurrentGame() {
|
||||
for ( int i = 0; i < numplayers; i++ ) {
|
||||
|
|
|
@ -239,7 +239,7 @@ extern void D_RunFrame( bool );
|
|||
extern void I_ShutdownSound();
|
||||
extern void I_ShutdownMusic();
|
||||
extern void I_ShutdownGraphics();
|
||||
extern void I_ProcessSoundEvents( void );
|
||||
extern void I_ProcessSoundEvents();
|
||||
|
||||
|
||||
void DoomLib::InitGlobals( void *ptr /* = NULL */ )
|
||||
|
|
|
@ -53,7 +53,7 @@ extern int PLAYERCOUNT;
|
|||
|
||||
#define NUM_BUTTONS 4
|
||||
|
||||
static bool Cheat_God( void ) {
|
||||
static bool Cheat_God() {
|
||||
if( PLAYERCOUNT != 1 || ::g->netgame ) {
|
||||
return false;
|
||||
}
|
||||
|
@ -72,7 +72,7 @@ static bool Cheat_God( void ) {
|
|||
}
|
||||
|
||||
#include "g_game.h"
|
||||
static bool Cheat_NextLevel( void ) {
|
||||
static bool Cheat_NextLevel() {
|
||||
if( PLAYERCOUNT != 1 || ::g->netgame ) {
|
||||
return false;
|
||||
}
|
||||
|
@ -81,7 +81,7 @@ static bool Cheat_NextLevel( void ) {
|
|||
return true;
|
||||
}
|
||||
|
||||
static bool Cheat_GiveAll( void ) {
|
||||
static bool Cheat_GiveAll() {
|
||||
if( PLAYERCOUNT != 1 || ::g->netgame ) {
|
||||
return false;
|
||||
}
|
||||
|
@ -103,7 +103,7 @@ static bool Cheat_GiveAll( void ) {
|
|||
return true;
|
||||
}
|
||||
|
||||
static bool Cheat_GiveAmmo( void ) {
|
||||
static bool Cheat_GiveAmmo() {
|
||||
if( PLAYERCOUNT != 1 || ::g->netgame ) {
|
||||
return false;
|
||||
}
|
||||
|
@ -121,7 +121,7 @@ static bool Cheat_GiveAmmo( void ) {
|
|||
return true;
|
||||
}
|
||||
|
||||
static bool Cheat_Choppers( void ) {
|
||||
static bool Cheat_Choppers() {
|
||||
if( PLAYERCOUNT != 1 || ::g->netgame ) {
|
||||
return false;
|
||||
}
|
||||
|
@ -143,7 +143,7 @@ static void TogglePowerUp( int i ) {
|
|||
::g->plyr->message = STSTR_BEHOLDX;
|
||||
}
|
||||
|
||||
static bool Cheat_GiveInvul( void ) {
|
||||
static bool Cheat_GiveInvul() {
|
||||
if( PLAYERCOUNT != 1 || ::g->netgame ) {
|
||||
return false;
|
||||
}
|
||||
|
@ -152,7 +152,7 @@ static bool Cheat_GiveInvul( void ) {
|
|||
return true;
|
||||
}
|
||||
|
||||
static bool Cheat_GiveBerserk( void ) {
|
||||
static bool Cheat_GiveBerserk() {
|
||||
if( PLAYERCOUNT != 1 || ::g->netgame ) {
|
||||
return false;
|
||||
}
|
||||
|
@ -161,7 +161,7 @@ static bool Cheat_GiveBerserk( void ) {
|
|||
return true;
|
||||
}
|
||||
|
||||
static bool Cheat_GiveBlur( void ) {
|
||||
static bool Cheat_GiveBlur() {
|
||||
if( PLAYERCOUNT != 1 || ::g->netgame ) {
|
||||
return false;
|
||||
}
|
||||
|
@ -170,7 +170,7 @@ static bool Cheat_GiveBlur( void ) {
|
|||
return true;
|
||||
}
|
||||
|
||||
static bool Cheat_GiveRad( void ) {
|
||||
static bool Cheat_GiveRad() {
|
||||
if( PLAYERCOUNT != 1 || ::g->netgame ) {
|
||||
return false;
|
||||
}
|
||||
|
@ -179,7 +179,7 @@ static bool Cheat_GiveRad( void ) {
|
|||
return true;
|
||||
}
|
||||
|
||||
static bool Cheat_GiveMap( void ) {
|
||||
static bool Cheat_GiveMap() {
|
||||
if( PLAYERCOUNT != 1 || ::g->netgame ) {
|
||||
return false;
|
||||
}
|
||||
|
@ -188,7 +188,7 @@ static bool Cheat_GiveMap( void ) {
|
|||
return true;
|
||||
}
|
||||
|
||||
static bool Cheat_GiveLight( void ) {
|
||||
static bool Cheat_GiveLight() {
|
||||
if( PLAYERCOUNT != 1 || ::g->netgame ) {
|
||||
return false;
|
||||
}
|
||||
|
@ -231,7 +231,7 @@ static cheatcode_t codes[] = {
|
|||
const static int numberOfCodes = sizeof(codes) / sizeof(codes[0]);
|
||||
|
||||
|
||||
void BeginTrackingCheat( void ) {
|
||||
void BeginTrackingCheat() {
|
||||
#if ALLOW_CHEATS
|
||||
tracking = true;
|
||||
currentCheatLength = 0;
|
||||
|
@ -239,7 +239,7 @@ void BeginTrackingCheat( void ) {
|
|||
#endif
|
||||
}
|
||||
|
||||
void EndTrackingCheat( void ) {
|
||||
void EndTrackingCheat() {
|
||||
#if ALLOW_CHEATS
|
||||
tracking = false;
|
||||
#endif
|
||||
|
@ -282,7 +282,7 @@ void I_InitInput(void)
|
|||
{
|
||||
}
|
||||
|
||||
void I_ShutdownInput( void )
|
||||
void I_ShutdownInput()
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -463,7 +463,7 @@ int I_ReturnJoystickInputEvent( const int n, event_t* e) {
|
|||
return 0;
|
||||
}
|
||||
|
||||
void I_EndJoystickInputEvents( void ) {
|
||||
void I_EndJoystickInputEvents() {
|
||||
int i;
|
||||
for(i = 0; i < 18; i++)
|
||||
{
|
||||
|
|
|
@ -43,7 +43,7 @@ void I_InitNetwork (void);
|
|||
void I_NetCmd (void);
|
||||
|
||||
// DHM - Nerve
|
||||
void I_ShutdownNetwork( void );
|
||||
void I_ShutdownNetwork();
|
||||
|
||||
#endif
|
||||
|
||||
|
|
|
@ -260,7 +260,7 @@ void I_InitNetwork (void)
|
|||
}
|
||||
|
||||
// DHM - Nerve
|
||||
void I_ShutdownNetwork( void ) {
|
||||
void I_ShutdownNetwork() {
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -381,7 +381,7 @@ int I_StartSound2 ( int id, int player, mobj_t *origin, mobj_t *listener_origin,
|
|||
I_ProcessSoundEvents
|
||||
======================
|
||||
*/
|
||||
void I_ProcessSoundEvents( void ) {
|
||||
void I_ProcessSoundEvents() {
|
||||
for( int i = 0; i < 128; i++ ) {
|
||||
if( soundEvents[i].pitch ) {
|
||||
I_StartSound2( i, soundEvents[i].player, soundEvents[i].originator, soundEvents[i].listener, soundEvents[i].pitch, soundEvents[i].priority );
|
||||
|
@ -490,7 +490,7 @@ I_UpdateSound
|
|||
*/
|
||||
// Update Listener Position and go through all the
|
||||
// channels and update speaker volumes for 3D sound.
|
||||
void I_UpdateSound( void ) {
|
||||
void I_UpdateSound() {
|
||||
if ( !soundHardwareInitialized ) {
|
||||
return;
|
||||
}
|
||||
|
@ -989,7 +989,7 @@ void I_PlaySong( const char *songname, int looping)
|
|||
I_UpdateMusic
|
||||
======================
|
||||
*/
|
||||
void I_UpdateMusic( void ) {
|
||||
void I_UpdateMusic() {
|
||||
if ( !Music_initialized ) {
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -61,8 +61,8 @@ void I_EndRead (void);
|
|||
|
||||
void I_InitInput (void);
|
||||
|
||||
void I_ShutdownInput( void ) ;
|
||||
void I_InputFrame( void );
|
||||
void I_ShutdownInput() ;
|
||||
void I_InputFrame();
|
||||
|
||||
void I_UpdateControllerState(void);
|
||||
struct controller_t;
|
||||
|
@ -70,7 +70,7 @@ int I_PollMouseInputEvents( controller_t * ) ;
|
|||
int I_ReturnMouseInputEvent( const int n, event_t* e);
|
||||
int I_PollJoystickInputEvents( controller_t * ) ;
|
||||
int I_ReturnJoystickInputEvent( const int n, event_t* e);
|
||||
void I_EndJoystickInputEvents( void );
|
||||
void I_EndJoystickInputEvents();
|
||||
|
||||
#endif
|
||||
|
||||
|
|
|
@ -308,7 +308,7 @@ void W_InitMultipleFiles (const char** filenames)
|
|||
}
|
||||
|
||||
|
||||
void W_Shutdown( void ) {
|
||||
void W_Shutdown() {
|
||||
/*
|
||||
for (int i = 0 ; i < MAXWADFILES ; i++) {
|
||||
if ( ::g->wadFileHandles[i] ) {
|
||||
|
|
|
@ -86,7 +86,7 @@ void W_ReadLump (int lump, void *dest);
|
|||
void* W_CacheLumpNum (int lump, int tag);
|
||||
void* W_CacheLumpName (const char* name, int tag);
|
||||
|
||||
void W_Shutdown( void );
|
||||
void W_Shutdown();
|
||||
|
||||
|
||||
#endif
|
||||
|
|
|
@ -236,7 +236,7 @@ public:
|
|||
void Spawn();
|
||||
virtual bool Pickup( idPlayer* player );
|
||||
virtual bool ClientReceiveEvent( int event, int time, const idBitMsg& msg );
|
||||
virtual void Think( void );
|
||||
virtual void Think();
|
||||
|
||||
void Drop( bool death = false ); // was the drop caused by death of carrier?
|
||||
void Return( idPlayer* player = NULL );
|
||||
|
|
|
@ -1684,7 +1684,7 @@ void idCommonLocal::BusyWait()
|
|||
idCommonLocal::InitCommands
|
||||
===============
|
||||
*/
|
||||
void idCommonLocal::InitCommands( void )
|
||||
void idCommonLocal::InitCommands()
|
||||
{
|
||||
// compilers
|
||||
cmdSystem->AddCommand( "dmap", Dmap_f, CMD_FL_TOOL, "compiles a map", idCmdSystem::ArgCompletion_MapName );
|
||||
|
|
|
@ -154,7 +154,7 @@ const char* idDeclSkin::DefaultDefinition() const
|
|||
idDeclSkin::GetNumModelAssociations
|
||||
================
|
||||
*/
|
||||
const int idDeclSkin::GetNumModelAssociations( void ) const
|
||||
const int idDeclSkin::GetNumModelAssociations() const
|
||||
{
|
||||
return associatedModels.Num();
|
||||
}
|
||||
|
|
|
@ -89,7 +89,7 @@ returns the minimum size in bytes of the target buffer for decoding
|
|||
4 base64 digits <-> 3 bytes
|
||||
============
|
||||
*/
|
||||
int idBase64::DecodeLength( void ) const
|
||||
int idBase64::DecodeLength() const
|
||||
{
|
||||
return 3 * len / 4;
|
||||
}
|
||||
|
|
|
@ -158,7 +158,7 @@ private:
|
|||
MakeCallback
|
||||
========================
|
||||
*/
|
||||
ID_INLINE_EXTERN idCallbackStatic MakeCallback( void ( *f )( void ) )
|
||||
ID_INLINE_EXTERN idCallbackStatic MakeCallback( void ( *f )() )
|
||||
{
|
||||
return idCallbackStatic( f );
|
||||
}
|
||||
|
@ -169,7 +169,7 @@ MakeCallback
|
|||
========================
|
||||
*/
|
||||
template < class T >
|
||||
ID_INLINE_EXTERN idCallbackBindMem<T> MakeCallback( T* t, void ( T::*f )( void ) )
|
||||
ID_INLINE_EXTERN idCallbackBindMem<T> MakeCallback( T* t, void ( T::*f )() )
|
||||
{
|
||||
return idCallbackBindMem<T>( t, f );
|
||||
}
|
||||
|
|
|
@ -109,7 +109,7 @@ idListNewElement<type>
|
|||
================
|
||||
*/
|
||||
template< class type >
|
||||
ID_INLINE type* idListNewElement( void )
|
||||
ID_INLINE type* idListNewElement()
|
||||
{
|
||||
return new type;
|
||||
}
|
||||
|
|
|
@ -71,10 +71,10 @@ class idCinematic
|
|||
{
|
||||
public:
|
||||
// initialize cinematic play back data
|
||||
static void InitCinematic( void );
|
||||
static void InitCinematic();
|
||||
|
||||
// shutdown cinematic play back data
|
||||
static void ShutdownCinematic( void );
|
||||
static void ShutdownCinematic();
|
||||
|
||||
// allocates and returns a private subclass that implements the methods
|
||||
// This should be used instead of new
|
||||
|
|
|
@ -509,7 +509,7 @@ static void LoadJPG( const char* filename, unsigned char** pic, int* width, int*
|
|||
|
||||
/* Step 3: read file parameters with jpeg_read_header() */
|
||||
|
||||
( void ) jpeg_read_header( &cinfo, true );
|
||||
jpeg_read_header( &cinfo, true );
|
||||
/* We can ignore the return value from jpeg_read_header since
|
||||
* (a) suspension is not possible with the stdio data source, and
|
||||
* (b) we passed TRUE to reject a tables-only JPEG file as an error.
|
||||
|
@ -524,7 +524,7 @@ static void LoadJPG( const char* filename, unsigned char** pic, int* width, int*
|
|||
|
||||
/* Step 5: Start decompressor */
|
||||
|
||||
( void ) jpeg_start_decompress( &cinfo );
|
||||
jpeg_start_decompress( &cinfo );
|
||||
/* We can ignore the return value since suspension is not possible
|
||||
* with the stdio data source.
|
||||
*/
|
||||
|
@ -563,7 +563,7 @@ static void LoadJPG( const char* filename, unsigned char** pic, int* width, int*
|
|||
*/
|
||||
bbuf = ( ( out + ( row_stride * cinfo.output_scanline ) ) );
|
||||
buffer = &bbuf;
|
||||
( void ) jpeg_read_scanlines( &cinfo, buffer, 1 );
|
||||
jpeg_read_scanlines( &cinfo, buffer, 1 );
|
||||
}
|
||||
|
||||
// clear all the alphas to 255
|
||||
|
@ -582,7 +582,7 @@ static void LoadJPG( const char* filename, unsigned char** pic, int* width, int*
|
|||
|
||||
/* Step 7: Finish decompression */
|
||||
|
||||
( void ) jpeg_finish_decompress( &cinfo );
|
||||
jpeg_finish_decompress( &cinfo );
|
||||
/* We can ignore the return value since suspension is not possible
|
||||
* with the stdio data source.
|
||||
*/
|
||||
|
|
|
@ -59,8 +59,7 @@ void idImage::SubImageUpload( int mipLevel, int x, int y, int z, int width, int
|
|||
|
||||
int padW = ( opts.width + 3 ) & ~3;
|
||||
int padH = ( opts.height + 3 ) & ~3;
|
||||
( void )padH;
|
||||
( void )padW;
|
||||
|
||||
assert( x + width <= padW && y + height <= padH );
|
||||
// upload the non-aligned value, OpenGL understands that there
|
||||
// will be padding
|
||||
|
|
|
@ -44,7 +44,7 @@ If you have questions concerning this license or the applicable additional terms
|
|||
idAASBuild::idAASBuild
|
||||
============
|
||||
*/
|
||||
idAASBuild::idAASBuild( void )
|
||||
idAASBuild::idAASBuild()
|
||||
{
|
||||
file = NULL;
|
||||
procNodes = NULL;
|
||||
|
@ -60,7 +60,7 @@ idAASBuild::idAASBuild( void )
|
|||
idAASBuild::~idAASBuild
|
||||
============
|
||||
*/
|
||||
idAASBuild::~idAASBuild( void )
|
||||
idAASBuild::~idAASBuild()
|
||||
{
|
||||
Shutdown();
|
||||
}
|
||||
|
@ -70,7 +70,7 @@ idAASBuild::~idAASBuild( void )
|
|||
idAASBuild::Shutdown
|
||||
================
|
||||
*/
|
||||
void idAASBuild::Shutdown( void )
|
||||
void idAASBuild::Shutdown()
|
||||
{
|
||||
aasSettings = NULL;
|
||||
if( file )
|
||||
|
@ -203,7 +203,7 @@ bool idAASBuild::LoadProcBSP( const char* name, ID_TIME_T minFileTime )
|
|||
idAASBuild::DeleteProcBSP
|
||||
============
|
||||
*/
|
||||
void idAASBuild::DeleteProcBSP( void )
|
||||
void idAASBuild::DeleteProcBSP()
|
||||
{
|
||||
if( procNodes )
|
||||
{
|
||||
|
|
|
@ -52,7 +52,7 @@ int aas_vertexShift;
|
|||
idAASBuild::SetupHash
|
||||
================
|
||||
*/
|
||||
void idAASBuild::SetupHash( void )
|
||||
void idAASBuild::SetupHash()
|
||||
{
|
||||
aas_vertexHash = new idHashIndex( VERTEX_HASH_SIZE, 1024 );
|
||||
aas_edgeHash = new idHashIndex( EDGE_HASH_SIZE, 1024 );
|
||||
|
@ -63,7 +63,7 @@ void idAASBuild::SetupHash( void )
|
|||
idAASBuild::ShutdownHash
|
||||
================
|
||||
*/
|
||||
void idAASBuild::ShutdownHash( void )
|
||||
void idAASBuild::ShutdownHash()
|
||||
{
|
||||
delete aas_vertexHash;
|
||||
delete aas_edgeHash;
|
||||
|
|
|
@ -44,7 +44,7 @@ If you have questions concerning this license or the applicable additional terms
|
|||
idLedge::idLedge
|
||||
============
|
||||
*/
|
||||
idLedge::idLedge( void )
|
||||
idLedge::idLedge()
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
@ -64,7 +64,7 @@ public:
|
|||
idPlane planes[8];
|
||||
|
||||
public:
|
||||
idLedge( void );
|
||||
idLedge();
|
||||
idLedge( const idVec3& v1, const idVec3& v2, const idVec3& gravityDir, idBrushBSPNode* n );
|
||||
void AddPoint( const idVec3& v );
|
||||
void CreateBevels( const idVec3& gravityDir );
|
||||
|
@ -78,11 +78,11 @@ class idAASBuild
|
|||
{
|
||||
|
||||
public:
|
||||
idAASBuild( void );
|
||||
~idAASBuild( void );
|
||||
idAASBuild();
|
||||
~idAASBuild();
|
||||
bool Build( const idStr& fileName, const idAASSettings* settings );
|
||||
bool BuildReachability( const idStr& fileName, const idAASSettings* settings );
|
||||
void Shutdown( void );
|
||||
void Shutdown();
|
||||
|
||||
private:
|
||||
const idAASSettings* aasSettings;
|
||||
|
@ -98,7 +98,7 @@ private:
|
|||
private: // map loading
|
||||
void ParseProcNodes( idLexer* src );
|
||||
bool LoadProcBSP( const char* name, ID_TIME_T minFileTime );
|
||||
void DeleteProcBSP( void );
|
||||
void DeleteProcBSP();
|
||||
bool ChoppedAwayByProcBSP( int nodeNum, idFixedWinding* w, const idVec3& normal, const idVec3& origin, const float radius );
|
||||
void ClipBrushSidesWithProcBSP( idBrushList& brushList );
|
||||
int ContentsForAAS( int contents );
|
||||
|
@ -134,8 +134,8 @@ private: // merging
|
|||
void MergeLeafNodes( idBrushBSP& bsp );
|
||||
|
||||
private: // storing file
|
||||
void SetupHash( void );
|
||||
void ShutdownHash( void );
|
||||
void SetupHash();
|
||||
void ShutdownHash();
|
||||
void ClearHash( const idBounds& bounds );
|
||||
int HashVec( const idVec3& vec );
|
||||
bool GetVertex( const idVec3& v, int* vertexNum );
|
||||
|
|
|
@ -187,7 +187,7 @@ bool idAASCluster::FloodClusterAreas_r( int areaNum, int clusterNum )
|
|||
idAASCluster::RemoveAreaClusterNumbers
|
||||
================
|
||||
*/
|
||||
void idAASCluster::RemoveAreaClusterNumbers( void )
|
||||
void idAASCluster::RemoveAreaClusterNumbers()
|
||||
{
|
||||
int i;
|
||||
|
||||
|
@ -296,7 +296,7 @@ void idAASCluster::NumberClusterAreas( int clusterNum )
|
|||
idAASCluster::FindClusters
|
||||
================
|
||||
*/
|
||||
bool idAASCluster::FindClusters( void )
|
||||
bool idAASCluster::FindClusters()
|
||||
{
|
||||
int i, clusterNum;
|
||||
aasCluster_t cluster;
|
||||
|
@ -350,7 +350,7 @@ bool idAASCluster::FindClusters( void )
|
|||
idAASCluster::CreatePortals
|
||||
================
|
||||
*/
|
||||
void idAASCluster::CreatePortals( void )
|
||||
void idAASCluster::CreatePortals()
|
||||
{
|
||||
int i;
|
||||
aasPortal_t portal;
|
||||
|
@ -373,7 +373,7 @@ void idAASCluster::CreatePortals( void )
|
|||
idAASCluster::TestPortals
|
||||
================
|
||||
*/
|
||||
bool idAASCluster::TestPortals( void )
|
||||
bool idAASCluster::TestPortals()
|
||||
{
|
||||
int i;
|
||||
aasPortal_t* portal, *portal2;
|
||||
|
@ -480,7 +480,7 @@ bool idAASCluster::TestPortals( void )
|
|||
idAASCluster::RemoveInvalidPortals
|
||||
================
|
||||
*/
|
||||
void idAASCluster::RemoveInvalidPortals( void )
|
||||
void idAASCluster::RemoveInvalidPortals()
|
||||
{
|
||||
int i, j, k, face1Num, face2Num, otherAreaNum, numOpenAreas, numInvalidPortals;
|
||||
aasFace_t* face1, *face2;
|
||||
|
|
|
@ -51,13 +51,13 @@ private:
|
|||
private:
|
||||
bool UpdatePortal( int areaNum, int clusterNum );
|
||||
bool FloodClusterAreas_r( int areaNum, int clusterNum );
|
||||
void RemoveAreaClusterNumbers( void );
|
||||
void RemoveAreaClusterNumbers();
|
||||
void NumberClusterAreas( int clusterNum );
|
||||
bool FindClusters( void );
|
||||
void CreatePortals( void );
|
||||
bool TestPortals( void );
|
||||
void ReportEfficiency( void );
|
||||
void RemoveInvalidPortals( void );
|
||||
bool FindClusters();
|
||||
void CreatePortals();
|
||||
bool TestPortals();
|
||||
void ReportEfficiency();
|
||||
void RemoveInvalidPortals();
|
||||
};
|
||||
|
||||
#endif /* !__AASCLUSTER_H__ */
|
||||
|
|
|
@ -74,7 +74,7 @@ void DisplayRealTimeString( char* string, ... )
|
|||
idBrushSide::idBrushSide
|
||||
============
|
||||
*/
|
||||
idBrushSide::idBrushSide( void )
|
||||
idBrushSide::idBrushSide()
|
||||
{
|
||||
flags = 0;
|
||||
planeNum = -1;
|
||||
|
@ -99,7 +99,7 @@ idBrushSide::idBrushSide( const idPlane& plane, int planeNum )
|
|||
idBrushSide::~idBrushSide
|
||||
============
|
||||
*/
|
||||
idBrushSide::~idBrushSide( void )
|
||||
idBrushSide::~idBrushSide()
|
||||
{
|
||||
if( winding )
|
||||
{
|
||||
|
@ -112,7 +112,7 @@ idBrushSide::~idBrushSide( void )
|
|||
idBrushSide::Copy
|
||||
============
|
||||
*/
|
||||
idBrushSide* idBrushSide::Copy( void ) const
|
||||
idBrushSide* idBrushSide::Copy() const
|
||||
{
|
||||
idBrushSide* side;
|
||||
|
||||
|
@ -184,7 +184,7 @@ int idBrushSide::Split( const idPlane& splitPlane, idBrushSide** front, idBrushS
|
|||
idBrush::idBrush
|
||||
============
|
||||
*/
|
||||
idBrush::idBrush( void )
|
||||
idBrush::idBrush()
|
||||
{
|
||||
contents = flags = 0;
|
||||
bounds.Clear();
|
||||
|
@ -198,7 +198,7 @@ idBrush::idBrush( void )
|
|||
idBrush::~idBrush
|
||||
============
|
||||
*/
|
||||
idBrush::~idBrush( void )
|
||||
idBrush::~idBrush()
|
||||
{
|
||||
for( int i = 0; i < sides.Num(); i++ )
|
||||
{
|
||||
|
@ -211,7 +211,7 @@ idBrush::~idBrush( void )
|
|||
idBrush::RemoveSidesWithoutWinding
|
||||
============
|
||||
*/
|
||||
bool idBrush::RemoveSidesWithoutWinding( void )
|
||||
bool idBrush::RemoveSidesWithoutWinding()
|
||||
{
|
||||
int i;
|
||||
|
||||
|
@ -235,7 +235,7 @@ bool idBrush::RemoveSidesWithoutWinding( void )
|
|||
idBrush::CreateWindings
|
||||
============
|
||||
*/
|
||||
bool idBrush::CreateWindings( void )
|
||||
bool idBrush::CreateWindings()
|
||||
{
|
||||
int i, j;
|
||||
idBrushSide* side;
|
||||
|
@ -489,7 +489,7 @@ void idBrush::Transform( const idVec3& origin, const idMat3& axis )
|
|||
idBrush::GetVolume
|
||||
============
|
||||
*/
|
||||
float idBrush::GetVolume( void ) const
|
||||
float idBrush::GetVolume() const
|
||||
{
|
||||
int i;
|
||||
idWinding* w;
|
||||
|
@ -942,7 +942,7 @@ idBrush::AddBevelsForAxialBox
|
|||
*/
|
||||
#define BRUSH_BEVEL_EPSILON 0.1f
|
||||
|
||||
void idBrush::AddBevelsForAxialBox( void )
|
||||
void idBrush::AddBevelsForAxialBox()
|
||||
{
|
||||
int axis, dir, i, j, k, l, order;
|
||||
idBrushSide* side, *newSide;
|
||||
|
@ -1158,7 +1158,7 @@ void idBrush::ExpandForAxialBox( const idBounds& bounds )
|
|||
idBrush::Copy
|
||||
============
|
||||
*/
|
||||
idBrush* idBrush::Copy( void ) const
|
||||
idBrush* idBrush::Copy() const
|
||||
{
|
||||
int i;
|
||||
idBrush* b;
|
||||
|
@ -1188,7 +1188,7 @@ idBrush* idBrush::Copy( void ) const
|
|||
idBrushList::idBrushList
|
||||
============
|
||||
*/
|
||||
idBrushList::idBrushList( void )
|
||||
idBrushList::idBrushList()
|
||||
{
|
||||
numBrushes = numBrushSides = 0;
|
||||
head = tail = NULL;
|
||||
|
@ -1199,7 +1199,7 @@ idBrushList::idBrushList( void )
|
|||
idBrushList::~idBrushList
|
||||
============
|
||||
*/
|
||||
idBrushList::~idBrushList( void )
|
||||
idBrushList::~idBrushList()
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -1208,7 +1208,7 @@ idBrushList::~idBrushList( void )
|
|||
idBrushList::GetBounds
|
||||
============
|
||||
*/
|
||||
idBounds idBrushList::GetBounds( void ) const
|
||||
idBounds idBrushList::GetBounds() const
|
||||
{
|
||||
idBounds bounds;
|
||||
idBrush* b;
|
||||
|
@ -1387,7 +1387,7 @@ void idBrushList::Delete( idBrush* brush )
|
|||
idBrushList::Copy
|
||||
============
|
||||
*/
|
||||
idBrushList* idBrushList::Copy( void ) const
|
||||
idBrushList* idBrushList::Copy() const
|
||||
{
|
||||
idBrush* brush;
|
||||
idBrushList* list;
|
||||
|
@ -1406,7 +1406,7 @@ idBrushList* idBrushList::Copy( void ) const
|
|||
idBrushList::Free
|
||||
============
|
||||
*/
|
||||
void idBrushList::Free( void )
|
||||
void idBrushList::Free()
|
||||
{
|
||||
idBrush* brush, *next;
|
||||
|
||||
|
@ -1787,7 +1787,7 @@ idBrushMap::idBrushMap( const idStr& fileName, const idStr& ext )
|
|||
idBrushMap::~idBrushMap
|
||||
============
|
||||
*/
|
||||
idBrushMap::~idBrushMap( void )
|
||||
idBrushMap::~idBrushMap()
|
||||
{
|
||||
if( !fp )
|
||||
{
|
||||
|
|
|
@ -66,11 +66,11 @@ class idBrushSide
|
|||
friend class idBrush;
|
||||
|
||||
public:
|
||||
idBrushSide( void );
|
||||
idBrushSide();
|
||||
idBrushSide( const idPlane& plane, int planeNum );
|
||||
~idBrushSide( void );
|
||||
~idBrushSide();
|
||||
|
||||
int GetFlags( void ) const
|
||||
int GetFlags() const
|
||||
{
|
||||
return flags;
|
||||
}
|
||||
|
@ -82,7 +82,7 @@ public:
|
|||
{
|
||||
flags &= ~flag;
|
||||
}
|
||||
const idPlane& GetPlane( void ) const
|
||||
const idPlane& GetPlane() const
|
||||
{
|
||||
return plane;
|
||||
}
|
||||
|
@ -90,15 +90,15 @@ public:
|
|||
{
|
||||
planeNum = num;
|
||||
}
|
||||
int GetPlaneNum( void )
|
||||
int GetPlaneNum()
|
||||
{
|
||||
return planeNum;
|
||||
}
|
||||
const idWinding* GetWinding( void ) const
|
||||
const idWinding* GetWinding() const
|
||||
{
|
||||
return winding;
|
||||
}
|
||||
idBrushSide* Copy( void ) const;
|
||||
idBrushSide* Copy() const;
|
||||
int Split( const idPlane& splitPlane, idBrushSide** front, idBrushSide** back ) const;
|
||||
|
||||
private:
|
||||
|
@ -123,10 +123,10 @@ class idBrush
|
|||
friend class idBrushList;
|
||||
|
||||
public:
|
||||
idBrush( void );
|
||||
~idBrush( void );
|
||||
idBrush();
|
||||
~idBrush();
|
||||
|
||||
int GetFlags( void ) const
|
||||
int GetFlags() const
|
||||
{
|
||||
return flags;
|
||||
}
|
||||
|
@ -150,16 +150,16 @@ public:
|
|||
{
|
||||
this->contents = contents;
|
||||
}
|
||||
int GetContents( void ) const
|
||||
int GetContents() const
|
||||
{
|
||||
return contents;
|
||||
}
|
||||
const idBounds& GetBounds( void ) const
|
||||
const idBounds& GetBounds() const
|
||||
{
|
||||
return bounds;
|
||||
}
|
||||
float GetVolume( void ) const;
|
||||
int GetNumSides( void ) const
|
||||
float GetVolume() const;
|
||||
int GetNumSides() const
|
||||
{
|
||||
return sides.Num();
|
||||
}
|
||||
|
@ -171,11 +171,11 @@ public:
|
|||
{
|
||||
planeSide = s;
|
||||
}
|
||||
void SavePlaneSide( void )
|
||||
void SavePlaneSide()
|
||||
{
|
||||
savedPlaneSide = planeSide;
|
||||
}
|
||||
int GetSavedPlaneSide( void ) const
|
||||
int GetSavedPlaneSide() const
|
||||
{
|
||||
return savedPlaneSide;
|
||||
}
|
||||
|
@ -183,7 +183,7 @@ public:
|
|||
bool FromWinding( const idWinding& w, const idPlane& windingPlane );
|
||||
bool FromBounds( const idBounds& bounds );
|
||||
void Transform( const idVec3& origin, const idMat3& axis );
|
||||
idBrush* Copy( void ) const;
|
||||
idBrush* Copy() const;
|
||||
bool TryMerge( const idBrush* brush, const idPlaneSet& planeList );
|
||||
// returns true if the brushes did intersect
|
||||
bool Subtract( const idBrush* b, idBrushList& list ) const;
|
||||
|
@ -192,7 +192,7 @@ public:
|
|||
// expand the brush for an axial bounding box
|
||||
void ExpandForAxialBox( const idBounds& bounds );
|
||||
// next brush in list
|
||||
idBrush* Next( void ) const
|
||||
idBrush* Next() const
|
||||
{
|
||||
return next;
|
||||
}
|
||||
|
@ -210,10 +210,10 @@ private:
|
|||
idList<idBrushSide*> sides; // list with sides
|
||||
|
||||
private:
|
||||
bool CreateWindings( void );
|
||||
bool CreateWindings();
|
||||
void BoundBrush( const idBrush* original = NULL );
|
||||
void AddBevelsForAxialBox( void );
|
||||
bool RemoveSidesWithoutWinding( void );
|
||||
void AddBevelsForAxialBox();
|
||||
bool RemoveSidesWithoutWinding();
|
||||
};
|
||||
|
||||
|
||||
|
@ -226,35 +226,35 @@ private:
|
|||
class idBrushList
|
||||
{
|
||||
public:
|
||||
idBrushList( void );
|
||||
~idBrushList( void );
|
||||
idBrushList();
|
||||
~idBrushList();
|
||||
|
||||
int Num( void ) const
|
||||
int Num() const
|
||||
{
|
||||
return numBrushes;
|
||||
}
|
||||
int NumSides( void ) const
|
||||
int NumSides() const
|
||||
{
|
||||
return numBrushSides;
|
||||
}
|
||||
idBrush* Head( void ) const
|
||||
idBrush* Head() const
|
||||
{
|
||||
return head;
|
||||
}
|
||||
idBrush* Tail( void ) const
|
||||
idBrush* Tail() const
|
||||
{
|
||||
return tail;
|
||||
}
|
||||
void Clear( void )
|
||||
void Clear()
|
||||
{
|
||||
head = tail = NULL;
|
||||
numBrushes = 0;
|
||||
}
|
||||
bool IsEmpty( void ) const
|
||||
bool IsEmpty() const
|
||||
{
|
||||
return ( numBrushes == 0 );
|
||||
}
|
||||
idBounds GetBounds( void ) const;
|
||||
idBounds GetBounds() const;
|
||||
// add brush to the tail of the list
|
||||
void AddToTail( idBrush* brush );
|
||||
// add list to the tail of the list
|
||||
|
@ -268,9 +268,9 @@ public:
|
|||
// remove the brush from the list and delete the brush
|
||||
void Delete( idBrush* brush );
|
||||
// returns a copy of the brush list
|
||||
idBrushList* Copy( void ) const;
|
||||
idBrushList* Copy() const;
|
||||
// delete all brushes in the list
|
||||
void Free( void );
|
||||
void Free();
|
||||
// split the brushes in the list into two lists
|
||||
void Split( const idPlane& plane, int planeNum, idBrushList& frontList, idBrushList& backList, bool useBrushSavedPlaneSide = false );
|
||||
// chop away all brush overlap
|
||||
|
@ -303,7 +303,7 @@ class idBrushMap
|
|||
|
||||
public:
|
||||
idBrushMap( const idStr& fileName, const idStr& ext );
|
||||
~idBrushMap( void );
|
||||
~idBrushMap();
|
||||
void SetTexture( const idStr& textureName )
|
||||
{
|
||||
texture = textureName;
|
||||
|
|
|
@ -55,7 +55,7 @@ If you have questions concerning this license or the applicable additional terms
|
|||
idBrushBSPPortal::idBrushBSPPortal
|
||||
============
|
||||
*/
|
||||
idBrushBSPPortal::idBrushBSPPortal( void )
|
||||
idBrushBSPPortal::idBrushBSPPortal()
|
||||
{
|
||||
planeNum = -1;
|
||||
winding = NULL;
|
||||
|
@ -70,7 +70,7 @@ idBrushBSPPortal::idBrushBSPPortal( void )
|
|||
idBrushBSPPortal::~idBrushBSPPortal
|
||||
============
|
||||
*/
|
||||
idBrushBSPPortal::~idBrushBSPPortal( void )
|
||||
idBrushBSPPortal::~idBrushBSPPortal()
|
||||
{
|
||||
if( winding )
|
||||
{
|
||||
|
@ -160,7 +160,7 @@ void idBrushBSPPortal::RemoveFromNode( idBrushBSPNode* l )
|
|||
idBrushBSPPortal::Flip
|
||||
============
|
||||
*/
|
||||
void idBrushBSPPortal::Flip( void )
|
||||
void idBrushBSPPortal::Flip()
|
||||
{
|
||||
idBrushBSPNode* frontNode, *backNode;
|
||||
|
||||
|
@ -236,7 +236,7 @@ int idBrushBSPPortal::Split( const idPlane& splitPlane, idBrushBSPPortal** front
|
|||
idBrushBSPNode::idBrushBSPNode
|
||||
============
|
||||
*/
|
||||
idBrushBSPNode::idBrushBSPNode( void )
|
||||
idBrushBSPNode::idBrushBSPNode()
|
||||
{
|
||||
brushList.Clear();
|
||||
contents = 0;
|
||||
|
@ -253,7 +253,7 @@ idBrushBSPNode::idBrushBSPNode( void )
|
|||
idBrushBSPNode::~idBrushBSPNode
|
||||
============
|
||||
*/
|
||||
idBrushBSPNode::~idBrushBSPNode( void )
|
||||
idBrushBSPNode::~idBrushBSPNode()
|
||||
{
|
||||
idBrushBSPPortal* p;
|
||||
|
||||
|
@ -282,7 +282,7 @@ idBrushBSPNode::~idBrushBSPNode( void )
|
|||
idBrushBSPNode::SetContentsFromBrushes
|
||||
============
|
||||
*/
|
||||
void idBrushBSPNode::SetContentsFromBrushes( void )
|
||||
void idBrushBSPNode::SetContentsFromBrushes()
|
||||
{
|
||||
idBrush* brush;
|
||||
|
||||
|
@ -298,7 +298,7 @@ void idBrushBSPNode::SetContentsFromBrushes( void )
|
|||
idBrushBSPNode::GetPortalBounds
|
||||
============
|
||||
*/
|
||||
idBounds idBrushBSPNode::GetPortalBounds( void )
|
||||
idBounds idBrushBSPNode::GetPortalBounds()
|
||||
{
|
||||
int s, i;
|
||||
idBrushBSPPortal* p;
|
||||
|
@ -322,7 +322,7 @@ idBounds idBrushBSPNode::GetPortalBounds( void )
|
|||
idBrushBSPNode::TestLeafNode
|
||||
============
|
||||
*/
|
||||
bool idBrushBSPNode::TestLeafNode( void )
|
||||
bool idBrushBSPNode::TestLeafNode()
|
||||
{
|
||||
int s, n;
|
||||
float d;
|
||||
|
@ -567,7 +567,7 @@ void idBrushBSPNode::RemoveFlagRecurseFlood( int flag )
|
|||
idBrushBSP::idBrushBSP
|
||||
============
|
||||
*/
|
||||
idBrushBSP::idBrushBSP( void )
|
||||
idBrushBSP::idBrushBSP()
|
||||
{
|
||||
root = outside = NULL;
|
||||
numSplits = numPrunedSplits = 0;
|
||||
|
@ -580,7 +580,7 @@ idBrushBSP::idBrushBSP( void )
|
|||
idBrushBSP::~idBrushBSP
|
||||
============
|
||||
*/
|
||||
idBrushBSP::~idBrushBSP( void )
|
||||
idBrushBSP::~idBrushBSP()
|
||||
{
|
||||
|
||||
RemoveMultipleLeafNodeReferences_r( root );
|
||||
|
@ -1468,7 +1468,7 @@ void idBrushBSP::MakeTreePortals_r( idBrushBSPNode* node )
|
|||
idBrushBSP::MakeOutsidePortals
|
||||
============
|
||||
*/
|
||||
void idBrushBSP::MakeOutsidePortals( void )
|
||||
void idBrushBSP::MakeOutsidePortals()
|
||||
{
|
||||
int i, j, n;
|
||||
idBounds bounds;
|
||||
|
@ -1531,7 +1531,7 @@ void idBrushBSP::MakeOutsidePortals( void )
|
|||
idBrushBSP::Portalize
|
||||
============
|
||||
*/
|
||||
void idBrushBSP::Portalize( void )
|
||||
void idBrushBSP::Portalize()
|
||||
{
|
||||
common->Printf( "[Portalize BSP]\n" );
|
||||
common->Printf( "%6d nodes\n", ( numSplits - numPrunedSplits ) * 2 + 1 );
|
||||
|
@ -1871,7 +1871,7 @@ idBrushBSP::SetPortalPlanes
|
|||
give all portals a plane number
|
||||
============
|
||||
*/
|
||||
void idBrushBSP::SetPortalPlanes( void )
|
||||
void idBrushBSP::SetPortalPlanes()
|
||||
{
|
||||
SetPortalPlanes_r( root, portalPlanes );
|
||||
}
|
||||
|
|
|
@ -55,17 +55,17 @@ class idBrushBSPPortal
|
|||
friend class idBrushBSPNode;
|
||||
|
||||
public:
|
||||
idBrushBSPPortal( void );
|
||||
~idBrushBSPPortal( void );
|
||||
idBrushBSPPortal();
|
||||
~idBrushBSPPortal();
|
||||
void AddToNodes( idBrushBSPNode* front, idBrushBSPNode* back );
|
||||
void RemoveFromNode( idBrushBSPNode* l );
|
||||
void Flip( void );
|
||||
void Flip();
|
||||
int Split( const idPlane& splitPlane, idBrushBSPPortal** front, idBrushBSPPortal** back );
|
||||
idWinding* GetWinding( void ) const
|
||||
idWinding* GetWinding() const
|
||||
{
|
||||
return winding;
|
||||
}
|
||||
const idPlane& GetPlane( void ) const
|
||||
const idPlane& GetPlane() const
|
||||
{
|
||||
return plane;
|
||||
}
|
||||
|
@ -73,11 +73,11 @@ public:
|
|||
{
|
||||
faceNum = num;
|
||||
}
|
||||
int GetFaceNum( void ) const
|
||||
int GetFaceNum() const
|
||||
{
|
||||
return faceNum;
|
||||
}
|
||||
int GetFlags( void ) const
|
||||
int GetFlags() const
|
||||
{
|
||||
return flags;
|
||||
}
|
||||
|
@ -125,15 +125,15 @@ class idBrushBSPNode
|
|||
friend class idBrushBSPPortal;
|
||||
|
||||
public:
|
||||
idBrushBSPNode( void );
|
||||
~idBrushBSPNode( void );
|
||||
void SetContentsFromBrushes( void );
|
||||
idBounds GetPortalBounds( void );
|
||||
idBrushBSPNode();
|
||||
~idBrushBSPNode();
|
||||
void SetContentsFromBrushes();
|
||||
idBounds GetPortalBounds();
|
||||
idBrushBSPNode* GetChild( int index ) const
|
||||
{
|
||||
return children[index];
|
||||
}
|
||||
idBrushBSPNode* GetParent( void ) const
|
||||
idBrushBSPNode* GetParent() const
|
||||
{
|
||||
return parent;
|
||||
}
|
||||
|
@ -141,15 +141,15 @@ public:
|
|||
{
|
||||
this->contents = contents;
|
||||
}
|
||||
int GetContents( void ) const
|
||||
int GetContents() const
|
||||
{
|
||||
return contents;
|
||||
}
|
||||
const idPlane& GetPlane( void ) const
|
||||
const idPlane& GetPlane() const
|
||||
{
|
||||
return plane;
|
||||
}
|
||||
idBrushBSPPortal* GetPortals( void ) const
|
||||
idBrushBSPPortal* GetPortals() const
|
||||
{
|
||||
return portals;
|
||||
}
|
||||
|
@ -157,11 +157,11 @@ public:
|
|||
{
|
||||
areaNum = num;
|
||||
}
|
||||
int GetAreaNum( void ) const
|
||||
int GetAreaNum() const
|
||||
{
|
||||
return areaNum;
|
||||
}
|
||||
int GetFlags( void ) const
|
||||
int GetFlags() const
|
||||
{
|
||||
return flags;
|
||||
}
|
||||
|
@ -173,7 +173,7 @@ public:
|
|||
{
|
||||
flags &= ~flag;
|
||||
}
|
||||
bool TestLeafNode( void );
|
||||
bool TestLeafNode();
|
||||
// remove the flag from nodes found by flooding through portals to nodes with the flag set
|
||||
void RemoveFlagFlood( int flag );
|
||||
// recurse down the tree and remove the flag from all visited nodes
|
||||
|
@ -210,8 +210,8 @@ class idBrushBSP
|
|||
{
|
||||
|
||||
public:
|
||||
idBrushBSP( void );
|
||||
~idBrushBSP( void );
|
||||
idBrushBSP();
|
||||
~idBrushBSP();
|
||||
// build a bsp tree from a set of brushes
|
||||
void Build( idBrushList brushList, int skipContents,
|
||||
bool ( *ChopAllowed )( idBrush* b1, idBrush* b2 ),
|
||||
|
@ -219,7 +219,7 @@ public:
|
|||
// remove splits in subspaces with the given contents
|
||||
void PruneTree( int contents );
|
||||
// portalize the bsp tree
|
||||
void Portalize( void );
|
||||
void Portalize();
|
||||
// remove subspaces outside the map not reachable by entities
|
||||
bool RemoveOutside( const idMapFile* mapFile, int contents, const idStrList& classNames );
|
||||
// write file with a trace going through a leak
|
||||
|
@ -234,12 +234,12 @@ public:
|
|||
// write a map file with a brush for every leaf node that has the given contents
|
||||
void WriteBrushMap( const idStr& fileName, const idStr& ext, int contents );
|
||||
// bounds for the whole tree
|
||||
const idBounds& GetTreeBounds( void ) const
|
||||
const idBounds& GetTreeBounds() const
|
||||
{
|
||||
return treeBounds;
|
||||
}
|
||||
// root node of the tree
|
||||
idBrushBSPNode* GetRootNode( void ) const
|
||||
idBrushBSPNode* GetRootNode() const
|
||||
{
|
||||
return root;
|
||||
}
|
||||
|
@ -269,7 +269,7 @@ private:
|
|||
private:
|
||||
void RemoveMultipleLeafNodeReferences_r( idBrushBSPNode* node );
|
||||
void Free_r( idBrushBSPNode* node );
|
||||
void IncreaseNumSplits( void );
|
||||
void IncreaseNumSplits();
|
||||
bool IsValidSplitter( const idBrushSide* side );
|
||||
int BrushSplitterStats( const idBrush* brush, int planeNum, const idPlaneSet& planeList, bool* testedPlanes, struct splitterStats_s& stats );
|
||||
int FindSplitter( idBrushBSPNode* node, const idPlaneSet& planeList, bool* testedPlanes, struct splitterStats_s& bestStats );
|
||||
|
@ -278,7 +278,7 @@ private:
|
|||
idBrushBSPNode* ProcessGridCell( idBrushBSPNode* node, int skipContents );
|
||||
void BuildGrid_r( idList<idBrushBSPNode*>& gridCells, idBrushBSPNode* node );
|
||||
void PruneTree_r( idBrushBSPNode* node, int contents );
|
||||
void MakeOutsidePortals( void );
|
||||
void MakeOutsidePortals();
|
||||
idWinding* BaseWindingForNode( idBrushBSPNode* node );
|
||||
void MakeNodePortal( idBrushBSPNode* node );
|
||||
void SplitNodePortals( idBrushBSPNode* node );
|
||||
|
@ -288,7 +288,7 @@ private:
|
|||
bool FloodFromEntities( const idMapFile* mapFile, int contents, const idStrList& classNames );
|
||||
void RemoveOutside_r( idBrushBSPNode* node, int contents );
|
||||
void SetPortalPlanes_r( idBrushBSPNode* node, idPlaneSet& planeList );
|
||||
void SetPortalPlanes( void );
|
||||
void SetPortalPlanes();
|
||||
void MergePortals_r( idBrushBSPNode* node, int skipContents );
|
||||
void MergeLeafNodePortals( idBrushBSPNode* node, int skipContents );
|
||||
void UpdateTreeAfterMerge_r( idBrushBSPNode* node, const idBounds& bounds, idBrushBSPNode* oldNode, idBrushBSPNode* newNode );
|
||||
|
|
|
@ -116,7 +116,7 @@ bool ProcessModel( uEntity_t* e, bool floodFill )
|
|||
ProcessModels
|
||||
============
|
||||
*/
|
||||
bool ProcessModels( void )
|
||||
bool ProcessModels()
|
||||
{
|
||||
bool oldVerbose;
|
||||
uEntity_t* entity;
|
||||
|
@ -158,7 +158,7 @@ bool ProcessModels( void )
|
|||
DmapHelp
|
||||
============
|
||||
*/
|
||||
void DmapHelp( void )
|
||||
void DmapHelp()
|
||||
{
|
||||
common->Printf(
|
||||
|
||||
|
@ -176,7 +176,7 @@ void DmapHelp( void )
|
|||
ResetDmapGlobals
|
||||
============
|
||||
*/
|
||||
void ResetDmapGlobals( void )
|
||||
void ResetDmapGlobals()
|
||||
{
|
||||
dmapGlobals.mapFileBase[0] = '\0';
|
||||
dmapGlobals.dmapFile = NULL;
|
||||
|
|
|
@ -320,7 +320,7 @@ void WriteBspBrushMap( const char* name, uBrush_t* list );
|
|||
void FilterBrushesIntoTree( uEntity_t* e );
|
||||
|
||||
void SplitBrush( uBrush_t* brush, int planenum, uBrush_t** front, uBrush_t** back );
|
||||
node_t* AllocNode( void );
|
||||
node_t* AllocNode();
|
||||
|
||||
|
||||
//=============================================================================
|
||||
|
@ -329,22 +329,22 @@ node_t* AllocNode( void );
|
|||
|
||||
bool LoadDMapFile( const char* filename );
|
||||
void FreeOptimizeGroupList( optimizeGroup_t* groups );
|
||||
void FreeDMapFile( void );
|
||||
void FreeDMapFile();
|
||||
|
||||
//=============================================================================
|
||||
|
||||
// draw.cpp -- draw debug views either directly, or through glserv.exe
|
||||
|
||||
void Draw_ClearWindow( void );
|
||||
void Draw_ClearWindow();
|
||||
void DrawWinding( const idWinding* w );
|
||||
void DrawAuxWinding( const idWinding* w );
|
||||
|
||||
void DrawLine( idVec3 v1, idVec3 v2, int color );
|
||||
|
||||
void GLS_BeginScene( void );
|
||||
void GLS_BeginScene();
|
||||
void GLS_Winding( const idWinding* w, int code );
|
||||
void GLS_Triangle( const mapTri_t* tri, int code );
|
||||
void GLS_EndScene( void );
|
||||
void GLS_EndScene();
|
||||
|
||||
|
||||
|
||||
|
@ -386,7 +386,7 @@ void LeakFile( tree_t* tree );
|
|||
|
||||
// facebsp.cpp
|
||||
|
||||
tree_t* AllocTree( void );
|
||||
tree_t* AllocTree();
|
||||
|
||||
void FreeTree( tree_t* tree );
|
||||
|
||||
|
@ -414,7 +414,7 @@ void Prelight( uEntity_t* e );
|
|||
|
||||
struct hashVert_s* GetHashVert( idVec3& v );
|
||||
void HashTriangles( optimizeGroup_t* groupList );
|
||||
void FreeTJunctionHash( void );
|
||||
void FreeTJunctionHash();
|
||||
int CountGroupListTris( const optimizeGroup_t* groupList );
|
||||
void FixEntityTjunctions( uEntity_t* e );
|
||||
void FixAreaGroupsTjunctions( optimizeGroup_t* groupList );
|
||||
|
@ -473,7 +473,7 @@ void OptimizeGroupList( optimizeGroup_t* groupList );
|
|||
|
||||
// tritools.cpp
|
||||
|
||||
mapTri_t* AllocTri( void );
|
||||
mapTri_t* AllocTri();
|
||||
void FreeTri( mapTri_t* tri );
|
||||
int CountTriList( const mapTri_t* list );
|
||||
mapTri_t* MergeTriLists( mapTri_t* a, mapTri_t* b );
|
||||
|
@ -496,7 +496,7 @@ void ClipTriList( const mapTri_t* list, const idPlane& plane, float epsilon, ma
|
|||
// output.cpp
|
||||
|
||||
srfTriangles_t* ShareMapTriVerts( const mapTri_t* tris );
|
||||
void WriteOutputFile( void );
|
||||
void WriteOutputFile();
|
||||
|
||||
//=============================================================================
|
||||
|
||||
|
|
|
@ -163,7 +163,7 @@ void PrintTree_r( node_t* node, int depth )
|
|||
AllocBspFace
|
||||
================
|
||||
*/
|
||||
bspface_t* AllocBspFace( void )
|
||||
bspface_t* AllocBspFace()
|
||||
{
|
||||
bspface_t* f;
|
||||
|
||||
|
|
|
@ -39,7 +39,7 @@ If you have questions concerning this license or the applicable additional terms
|
|||
|
||||
#define WIN_SIZE 1024
|
||||
|
||||
void Draw_ClearWindow( void )
|
||||
void Draw_ClearWindow()
|
||||
{
|
||||
|
||||
if( !dmapGlobals.drawflag )
|
||||
|
@ -102,7 +102,7 @@ void Draw_ClearWindow( void )
|
|||
|
||||
}
|
||||
|
||||
void Draw_SetRed( void )
|
||||
void Draw_SetRed()
|
||||
{
|
||||
if( !dmapGlobals.drawflag )
|
||||
return;
|
||||
|
@ -110,7 +110,7 @@ void Draw_SetRed( void )
|
|||
glColor3f( 1, 0, 0 );
|
||||
}
|
||||
|
||||
void Draw_SetGrey( void )
|
||||
void Draw_SetGrey()
|
||||
{
|
||||
if( !dmapGlobals.drawflag )
|
||||
return;
|
||||
|
@ -118,7 +118,7 @@ void Draw_SetGrey( void )
|
|||
glColor3f( 0.5f, 0.5f, 0.5f );
|
||||
}
|
||||
|
||||
void Draw_SetBlack( void )
|
||||
void Draw_SetBlack()
|
||||
{
|
||||
if( !dmapGlobals.drawflag )
|
||||
return;
|
||||
|
@ -220,7 +220,7 @@ void DrawLine( idVec3 v1, idVec3 v2, int color )
|
|||
bool wins_init;
|
||||
int draw_socket;
|
||||
|
||||
void GLS_BeginScene( void )
|
||||
void GLS_BeginScene()
|
||||
{
|
||||
WSADATA winsockdata;
|
||||
WORD wVersionRequested;
|
||||
|
@ -285,7 +285,7 @@ void GLS_Triangle( const mapTri_t* tri, int code )
|
|||
GLS_Winding( &w, code );
|
||||
}
|
||||
|
||||
void GLS_EndScene( void )
|
||||
void GLS_EndScene()
|
||||
{
|
||||
closesocket( draw_socket );
|
||||
draw_socket = 0;
|
||||
|
@ -293,7 +293,7 @@ void GLS_EndScene( void )
|
|||
|
||||
#else
|
||||
|
||||
void Draw_ClearWindow( void )
|
||||
void Draw_ClearWindow()
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -309,11 +309,11 @@ void GLS_Winding( const idWinding* w, int code )
|
|||
{
|
||||
}
|
||||
|
||||
void GLS_BeginScene( void )
|
||||
void GLS_BeginScene()
|
||||
{
|
||||
}
|
||||
|
||||
void GLS_EndScene( void )
|
||||
void GLS_EndScene()
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
@ -145,7 +145,7 @@ static void SetBrushContents( uBrush_t* b )
|
|||
FreeBuildBrush
|
||||
===============
|
||||
*/
|
||||
static void FreeBuildBrush( void )
|
||||
static void FreeBuildBrush()
|
||||
{
|
||||
int i;
|
||||
|
||||
|
@ -167,7 +167,7 @@ Produces a final brush based on the buildBrush->sides array
|
|||
and links it to the current entity
|
||||
===============
|
||||
*/
|
||||
static uBrush_t* FinishBrush( void )
|
||||
static uBrush_t* FinishBrush()
|
||||
{
|
||||
uBrush_t* b;
|
||||
primitive_t* prim;
|
||||
|
@ -616,7 +616,7 @@ void FreeOptimizeGroupList( optimizeGroup_t* groups )
|
|||
FreeDMapFile
|
||||
================
|
||||
*/
|
||||
void FreeDMapFile( void )
|
||||
void FreeDMapFile()
|
||||
{
|
||||
int i, j;
|
||||
|
||||
|
|
|
@ -106,7 +106,7 @@ static void ValidateEdgeCounts( optIsland_t* island )
|
|||
AllocEdge
|
||||
====================
|
||||
*/
|
||||
static optEdge_t* AllocEdge( void )
|
||||
static optEdge_t* AllocEdge()
|
||||
{
|
||||
optEdge_t* e;
|
||||
|
||||
|
@ -259,7 +259,7 @@ static optVertex_t* FindOptVertex( idDrawVert* v, optimizeGroup_t* opt )
|
|||
DrawAllEdges
|
||||
================
|
||||
*/
|
||||
static void DrawAllEdges( void )
|
||||
static void DrawAllEdges()
|
||||
{
|
||||
// int i;
|
||||
|
||||
|
|
|
@ -670,7 +670,7 @@ static void WriteOutputEntity( int entityNum )
|
|||
WriteOutputFile
|
||||
====================
|
||||
*/
|
||||
void WriteOutputFile( void )
|
||||
void WriteOutputFile()
|
||||
{
|
||||
int i;
|
||||
uEntity_t* entity;
|
||||
|
|
|
@ -44,7 +44,7 @@ int c_peak_portals;
|
|||
AllocPortal
|
||||
===========
|
||||
*/
|
||||
uPortal_t* AllocPortal( void )
|
||||
uPortal_t* AllocPortal()
|
||||
{
|
||||
uPortal_t* p;
|
||||
|
||||
|
|
|
@ -290,7 +290,7 @@ The optimizer may add some more crossing verts
|
|||
after t junction processing
|
||||
=================
|
||||
*/
|
||||
void FreeTJunctionHash( void )
|
||||
void FreeTJunctionHash()
|
||||
{
|
||||
int i, j, k;
|
||||
hashVert_t* hv, *next;
|
||||
|
|
|
@ -42,7 +42,7 @@ If you have questions concerning this license or the applicable additional terms
|
|||
AllocTri
|
||||
===============
|
||||
*/
|
||||
mapTri_t* AllocTri( void )
|
||||
mapTri_t* AllocTri()
|
||||
{
|
||||
mapTri_t* tri;
|
||||
|
||||
|
|
|
@ -497,7 +497,7 @@ void FilterBrushesIntoTree( uEntity_t* e )
|
|||
AllocTree
|
||||
================
|
||||
*/
|
||||
tree_t* AllocTree( void )
|
||||
tree_t* AllocTree()
|
||||
{
|
||||
tree_t* tree;
|
||||
|
||||
|
@ -513,7 +513,7 @@ tree_t* AllocTree( void )
|
|||
AllocNode
|
||||
================
|
||||
*/
|
||||
node_t* AllocNode( void )
|
||||
node_t* AllocNode()
|
||||
{
|
||||
node_t* node;
|
||||
|
||||
|
|
Loading…
Reference in a new issue