mirror of
https://github.com/jmarshall23/DoomRTX.git
synced 2026-08-21 13:10:37 +02:00
Quake 4 integrated with DoomRTX
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
|
||||
#ifndef __LIST_GAME_H__
|
||||
#define __LIST_GAME_H__
|
||||
|
||||
#if 0
|
||||
// GCC 4 compiles templates when they are encountered in a source file,
|
||||
// not when they are used. Therefore all references, must be resolved.
|
||||
// RemoveContents() from idLib\List.h references global variables only
|
||||
// available in the GAME DLL.
|
||||
|
||||
/*
|
||||
================
|
||||
idList<type>::RemoveContents
|
||||
================
|
||||
*/
|
||||
template< class type >
|
||||
ID_INLINE void idList<type>::RemoveContents( bool clear ) {
|
||||
RemoveNull();
|
||||
|
||||
for( int ix = Num() - 1; ix >= 0; --ix ) {
|
||||
list[ ix ]->PostEventMS( &EV_Remove, 0 );
|
||||
list[ ix ] = NULL;
|
||||
}
|
||||
|
||||
if ( clear ) {
|
||||
Clear();
|
||||
} else {
|
||||
memset( list, 0, Allocated() );
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // __LIST_GAME_H__
|
||||
Reference in New Issue
Block a user