minor tweaks

This commit is contained in:
Garux
2025-09-14 03:55:34 +05:00
parent 1cce74baac
commit 6e8079cc93
9 changed files with 10 additions and 10 deletions
+1 -1
View File
@@ -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];
+1 -1
View File
@@ -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;
+1 -1
View File
@@ -117,7 +117,7 @@ skipwhite:
}
com_token[len] = c;
len++;
} while ( 1 );
} while ( true );
}
// parse single characters
+1 -1
View File
@@ -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,
+2 -2
View File
@@ -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 ) ) {
+1 -1
View File
@@ -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" );
+1 -1
View File
@@ -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 */
+1 -1
View File
@@ -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 ) ) {
+1 -1
View File
@@ -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 ) {