mirror of
https://github.com/Garux/netradiant-custom.git
synced 2026-09-28 00:00:03 +02:00
minor tweaks
This commit is contained in:
+1
-1
@@ -173,7 +173,7 @@ class UniqueVertexBuffer
|
||||
RenderIndex find_or_insert( const Vertex& vertex ){
|
||||
RenderIndex index = 0;
|
||||
|
||||
while ( 1 )
|
||||
while ( true )
|
||||
{
|
||||
if ( vertex < m_data[index] ) {
|
||||
bnode& node = m_btree[index];
|
||||
|
||||
@@ -150,7 +150,7 @@ NodeSmartReference Entity_parseTokens( Tokeniser& tokeniser, EntityCreator& enti
|
||||
const char* classname = "";
|
||||
|
||||
int count_primitives = 0;
|
||||
while ( 1 )
|
||||
while ( true )
|
||||
{
|
||||
tokeniser.nextLine();
|
||||
const char* token;
|
||||
|
||||
@@ -117,7 +117,7 @@ skipwhite:
|
||||
}
|
||||
com_token[len] = c;
|
||||
len++;
|
||||
} while ( 1 );
|
||||
} while ( true );
|
||||
}
|
||||
|
||||
// parse single characters
|
||||
|
||||
@@ -210,7 +210,7 @@ void write_stack_trace( PCONTEXT pContext, TextOutputStream& outputStream ){
|
||||
|
||||
const unsigned int max_sym_name = 1024; // should be enough
|
||||
|
||||
while ( 1 )
|
||||
while ( true )
|
||||
{
|
||||
// Get the next stack frame
|
||||
if ( !StackWalk64( dwMachineType,
|
||||
|
||||
@@ -76,7 +76,7 @@ int GetThreadWork(){
|
||||
void ( *workfunction )( int );
|
||||
|
||||
void ThreadWorkerFunction( int threadnum ){
|
||||
while ( 1 )
|
||||
while ( true )
|
||||
{
|
||||
const int work = GetThreadWork();
|
||||
if ( work == -1 ) {
|
||||
@@ -512,7 +512,7 @@ void ThreadLock(){
|
||||
}
|
||||
else
|
||||
{
|
||||
while ( 1 )
|
||||
while ( true )
|
||||
{
|
||||
pthread_cond_wait( &pt_mutex->cond, &pt_mutex->a_mutex );
|
||||
if ( ( !pt_mutex->owner ) && ( pt_mutex->lock == 0 ) ) {
|
||||
|
||||
@@ -389,7 +389,7 @@ static bool ParseEntity(){
|
||||
entity_t& e = entities.emplace_back();
|
||||
|
||||
/* parse */
|
||||
while ( 1 )
|
||||
while ( true )
|
||||
{
|
||||
if ( !GetToken( true ) ) {
|
||||
Error( "ParseEntity: EOF without closing brace" );
|
||||
|
||||
@@ -1474,7 +1474,7 @@ static bool TraceLine_r( int nodeNum, const Vector3& origin, const Vector3& end,
|
||||
#if TRACELINE_R_HALF_ITERATIVE
|
||||
Vector3 origin( start );
|
||||
|
||||
while ( 1 )
|
||||
while ( true )
|
||||
#endif
|
||||
{
|
||||
/* bogus node number means solid, end tracing unless testing all */
|
||||
|
||||
@@ -1486,7 +1486,7 @@ static bool ParseMapEntity( bool onlyLights, bool noCollapseGroups, int mapEntit
|
||||
mapEnt.mapEntityNum = mapEntityNum;
|
||||
|
||||
/* loop */
|
||||
while ( 1 )
|
||||
while ( true )
|
||||
{
|
||||
/* get initial token */
|
||||
if ( !GetToken( true ) ) {
|
||||
|
||||
@@ -99,7 +99,7 @@ void RemovePortalFromNode( portal_t *portal, node_t *l ){
|
||||
|
||||
// remove reference to the current portal
|
||||
pp = &l->portals;
|
||||
while ( 1 )
|
||||
while ( true )
|
||||
{
|
||||
t = *pp;
|
||||
if ( !t ) {
|
||||
|
||||
Reference in New Issue
Block a user