Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ Bool W3DVideoBuffer::allocate( UnsignedInt width, UnsignedInt height )

m_width = width;
m_height = height;
m_textureWidth = width;;
m_textureHeight = height;;
m_textureWidth = width;
m_textureHeight = height;
unsigned int temp_depth=1;
TextureLoader::Validate_Texture_Size( m_textureWidth, m_textureHeight, temp_depth);

Expand Down
2 changes: 1 addition & 1 deletion Core/Libraries/Source/WWVegas/WWAudio/LogicalSound.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ LogicalSoundClass::On_Frame_Update (unsigned int milliseconds)
// Update the sound's position if its linked to a render object
//
Apply_Auto_Position ();
return SoundSceneObjClass::On_Frame_Update (milliseconds);;
return SoundSceneObjClass::On_Frame_Update (milliseconds);
}


Expand Down
2 changes: 1 addition & 1 deletion Core/Libraries/Source/WWVegas/WWLib/thread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
** along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#define _WIN32_WINNT 0x0400

Check warning on line 19 in Core/Libraries/Source/WWVegas/WWLib/thread.cpp

View workflow job for this annotation

GitHub Actions / Build Generals / win32-debug+t+e

'_WIN32_WINNT': macro redefinition

Check warning on line 19 in Core/Libraries/Source/WWVegas/WWLib/thread.cpp

View workflow job for this annotation

GitHub Actions / Build GeneralsMD / win32-debug+t+e

'_WIN32_WINNT': macro redefinition

Check warning on line 19 in Core/Libraries/Source/WWVegas/WWLib/thread.cpp

View workflow job for this annotation

GitHub Actions / Build Generals / win32-profile+t+e

'_WIN32_WINNT': macro redefinition

Check warning on line 19 in Core/Libraries/Source/WWVegas/WWLib/thread.cpp

View workflow job for this annotation

GitHub Actions / Build GeneralsMD / win32-profile+t+e

'_WIN32_WINNT': macro redefinition

Check warning on line 19 in Core/Libraries/Source/WWVegas/WWLib/thread.cpp

View workflow job for this annotation

GitHub Actions / Build Generals / win32+t+e

'_WIN32_WINNT': macro redefinition

Check warning on line 19 in Core/Libraries/Source/WWVegas/WWLib/thread.cpp

View workflow job for this annotation

GitHub Actions / Build GeneralsMD / win32+t+e

'_WIN32_WINNT': macro redefinition

#include "thread.h"
#include "Except.h"
Expand All @@ -37,7 +37,7 @@
size_t nameLen = strlcpy(ThreadName, thread_name, ARRAY_SIZE(ThreadName));
(void)nameLen; assert(nameLen < ARRAY_SIZE(ThreadName));
} else {
strcpy(ThreadName, "No name");;
strcpy(ThreadName, "No name");
}

ExceptionHandler = exception_handler;
Expand Down
2 changes: 1 addition & 1 deletion Core/Libraries/Source/WWVegas/WWMath/obbox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ OBBoxClass::OBBoxClass(const Vector3 * /*points*/, int /*n*/)
int i;

// compute mean and covariances of points
float xsum = 0.0f, ysum = 0.0f, zsum = 0.0f;;
float xsum = 0.0f, ysum = 0.0f, zsum = 0.0f;
float xxsum = 0.0f, xysum = 0.0f, xzsum = 0.0f;
float yysum = 0.0f, yzsum = 0.0f, zzsum = 0.0f;

Expand Down
2 changes: 1 addition & 1 deletion Core/Tools/Autorun/GameText.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@

while ( (*ptr++ = *first++) != 0 );

ptr -= 2;;
ptr -= 2;

while ( (ptr > buffer) && (ch = *ptr) != 0 && iswspace ( ch ) )
{
Expand Down Expand Up @@ -814,7 +814,7 @@
file.close();
}

return ok;

Check warning on line 817 in Core/Tools/Autorun/GameText.cpp

View workflow job for this annotation

GitHub Actions / Build Generals / vc6+t+e

'int' : forcing value to bool 'true' or 'false' (performance warning)

Check warning on line 817 in Core/Tools/Autorun/GameText.cpp

View workflow job for this annotation

GitHub Actions / Build Generals / vc6+t+e

'int' : forcing value to bool 'true' or 'false' (performance warning)

Check warning on line 817 in Core/Tools/Autorun/GameText.cpp

View workflow job for this annotation

GitHub Actions / Build Generals / vc6+t+e

'int' : forcing value to bool 'true' or 'false' (performance warning)

Check warning on line 817 in Core/Tools/Autorun/GameText.cpp

View workflow job for this annotation

GitHub Actions / Build GeneralsMD / vc6-profile+t+e

'int' : forcing value to bool 'true' or 'false' (performance warning)

Check warning on line 817 in Core/Tools/Autorun/GameText.cpp

View workflow job for this annotation

GitHub Actions / Build GeneralsMD / vc6-profile+t+e

'int' : forcing value to bool 'true' or 'false' (performance warning)

Check warning on line 817 in Core/Tools/Autorun/GameText.cpp

View workflow job for this annotation

GitHub Actions / Build GeneralsMD / vc6-profile+t+e

'int' : forcing value to bool 'true' or 'false' (performance warning)

Check warning on line 817 in Core/Tools/Autorun/GameText.cpp

View workflow job for this annotation

GitHub Actions / Build GeneralsMD / vc6+t+e

'int' : forcing value to bool 'true' or 'false' (performance warning)

Check warning on line 817 in Core/Tools/Autorun/GameText.cpp

View workflow job for this annotation

GitHub Actions / Build GeneralsMD / vc6+t+e

'int' : forcing value to bool 'true' or 'false' (performance warning)

Check warning on line 817 in Core/Tools/Autorun/GameText.cpp

View workflow job for this annotation

GitHub Actions / Build GeneralsMD / vc6+t+e

'int' : forcing value to bool 'true' or 'false' (performance warning)

Check warning on line 817 in Core/Tools/Autorun/GameText.cpp

View workflow job for this annotation

GitHub Actions / Build GeneralsMD / vc6-releaselog+t+e

'int' : forcing value to bool 'true' or 'false' (performance warning)

Check warning on line 817 in Core/Tools/Autorun/GameText.cpp

View workflow job for this annotation

GitHub Actions / Build GeneralsMD / vc6-releaselog+t+e

'int' : forcing value to bool 'true' or 'false' (performance warning)

Check warning on line 817 in Core/Tools/Autorun/GameText.cpp

View workflow job for this annotation

GitHub Actions / Build GeneralsMD / vc6-releaselog+t+e

'int' : forcing value to bool 'true' or 'false' (performance warning)

Check warning on line 817 in Core/Tools/Autorun/GameText.cpp

View workflow job for this annotation

GitHub Actions / Build Generals / vc6-profile+t+e

'int' : forcing value to bool 'true' or 'false' (performance warning)

Check warning on line 817 in Core/Tools/Autorun/GameText.cpp

View workflow job for this annotation

GitHub Actions / Build Generals / vc6-profile+t+e

'int' : forcing value to bool 'true' or 'false' (performance warning)

Check warning on line 817 in Core/Tools/Autorun/GameText.cpp

View workflow job for this annotation

GitHub Actions / Build Generals / vc6-profile+t+e

'int' : forcing value to bool 'true' or 'false' (performance warning)
}

//============================================================================
Expand Down Expand Up @@ -1038,7 +1038,7 @@

file.close();

return ok;

Check warning on line 1041 in Core/Tools/Autorun/GameText.cpp

View workflow job for this annotation

GitHub Actions / Build Generals / vc6+t+e

'int' : forcing value to bool 'true' or 'false' (performance warning)

Check warning on line 1041 in Core/Tools/Autorun/GameText.cpp

View workflow job for this annotation

GitHub Actions / Build Generals / vc6+t+e

'int' : forcing value to bool 'true' or 'false' (performance warning)

Check warning on line 1041 in Core/Tools/Autorun/GameText.cpp

View workflow job for this annotation

GitHub Actions / Build Generals / vc6+t+e

'int' : forcing value to bool 'true' or 'false' (performance warning)

Check warning on line 1041 in Core/Tools/Autorun/GameText.cpp

View workflow job for this annotation

GitHub Actions / Build GeneralsMD / vc6-profile+t+e

'int' : forcing value to bool 'true' or 'false' (performance warning)

Check warning on line 1041 in Core/Tools/Autorun/GameText.cpp

View workflow job for this annotation

GitHub Actions / Build GeneralsMD / vc6-profile+t+e

'int' : forcing value to bool 'true' or 'false' (performance warning)

Check warning on line 1041 in Core/Tools/Autorun/GameText.cpp

View workflow job for this annotation

GitHub Actions / Build GeneralsMD / vc6-profile+t+e

'int' : forcing value to bool 'true' or 'false' (performance warning)

Check warning on line 1041 in Core/Tools/Autorun/GameText.cpp

View workflow job for this annotation

GitHub Actions / Build GeneralsMD / vc6+t+e

'int' : forcing value to bool 'true' or 'false' (performance warning)

Check warning on line 1041 in Core/Tools/Autorun/GameText.cpp

View workflow job for this annotation

GitHub Actions / Build GeneralsMD / vc6+t+e

'int' : forcing value to bool 'true' or 'false' (performance warning)

Check warning on line 1041 in Core/Tools/Autorun/GameText.cpp

View workflow job for this annotation

GitHub Actions / Build GeneralsMD / vc6+t+e

'int' : forcing value to bool 'true' or 'false' (performance warning)

Check warning on line 1041 in Core/Tools/Autorun/GameText.cpp

View workflow job for this annotation

GitHub Actions / Build GeneralsMD / vc6-releaselog+t+e

'int' : forcing value to bool 'true' or 'false' (performance warning)

Check warning on line 1041 in Core/Tools/Autorun/GameText.cpp

View workflow job for this annotation

GitHub Actions / Build GeneralsMD / vc6-releaselog+t+e

'int' : forcing value to bool 'true' or 'false' (performance warning)

Check warning on line 1041 in Core/Tools/Autorun/GameText.cpp

View workflow job for this annotation

GitHub Actions / Build GeneralsMD / vc6-releaselog+t+e

'int' : forcing value to bool 'true' or 'false' (performance warning)

Check warning on line 1041 in Core/Tools/Autorun/GameText.cpp

View workflow job for this annotation

GitHub Actions / Build Generals / vc6-profile+t+e

'int' : forcing value to bool 'true' or 'false' (performance warning)

Check warning on line 1041 in Core/Tools/Autorun/GameText.cpp

View workflow job for this annotation

GitHub Actions / Build Generals / vc6-profile+t+e

'int' : forcing value to bool 'true' or 'false' (performance warning)

Check warning on line 1041 in Core/Tools/Autorun/GameText.cpp

View workflow job for this annotation

GitHub Actions / Build Generals / vc6-profile+t+e

'int' : forcing value to bool 'true' or 'false' (performance warning)
}

//============================================================================
Expand Down Expand Up @@ -1114,7 +1114,7 @@

*buffer = 0;

return ok;

Check warning on line 1117 in Core/Tools/Autorun/GameText.cpp

View workflow job for this annotation

GitHub Actions / Build Generals / vc6+t+e

'int' : forcing value to bool 'true' or 'false' (performance warning)

Check warning on line 1117 in Core/Tools/Autorun/GameText.cpp

View workflow job for this annotation

GitHub Actions / Build Generals / vc6+t+e

'int' : forcing value to bool 'true' or 'false' (performance warning)

Check warning on line 1117 in Core/Tools/Autorun/GameText.cpp

View workflow job for this annotation

GitHub Actions / Build Generals / vc6+t+e

'int' : forcing value to bool 'true' or 'false' (performance warning)

Check warning on line 1117 in Core/Tools/Autorun/GameText.cpp

View workflow job for this annotation

GitHub Actions / Build GeneralsMD / vc6-profile+t+e

'int' : forcing value to bool 'true' or 'false' (performance warning)

Check warning on line 1117 in Core/Tools/Autorun/GameText.cpp

View workflow job for this annotation

GitHub Actions / Build GeneralsMD / vc6-profile+t+e

'int' : forcing value to bool 'true' or 'false' (performance warning)

Check warning on line 1117 in Core/Tools/Autorun/GameText.cpp

View workflow job for this annotation

GitHub Actions / Build GeneralsMD / vc6-profile+t+e

'int' : forcing value to bool 'true' or 'false' (performance warning)

Check warning on line 1117 in Core/Tools/Autorun/GameText.cpp

View workflow job for this annotation

GitHub Actions / Build GeneralsMD / vc6+t+e

'int' : forcing value to bool 'true' or 'false' (performance warning)

Check warning on line 1117 in Core/Tools/Autorun/GameText.cpp

View workflow job for this annotation

GitHub Actions / Build GeneralsMD / vc6+t+e

'int' : forcing value to bool 'true' or 'false' (performance warning)

Check warning on line 1117 in Core/Tools/Autorun/GameText.cpp

View workflow job for this annotation

GitHub Actions / Build GeneralsMD / vc6+t+e

'int' : forcing value to bool 'true' or 'false' (performance warning)

Check warning on line 1117 in Core/Tools/Autorun/GameText.cpp

View workflow job for this annotation

GitHub Actions / Build GeneralsMD / vc6-releaselog+t+e

'int' : forcing value to bool 'true' or 'false' (performance warning)

Check warning on line 1117 in Core/Tools/Autorun/GameText.cpp

View workflow job for this annotation

GitHub Actions / Build GeneralsMD / vc6-releaselog+t+e

'int' : forcing value to bool 'true' or 'false' (performance warning)

Check warning on line 1117 in Core/Tools/Autorun/GameText.cpp

View workflow job for this annotation

GitHub Actions / Build GeneralsMD / vc6-releaselog+t+e

'int' : forcing value to bool 'true' or 'false' (performance warning)

Check warning on line 1117 in Core/Tools/Autorun/GameText.cpp

View workflow job for this annotation

GitHub Actions / Build Generals / vc6-profile+t+e

'int' : forcing value to bool 'true' or 'false' (performance warning)

Check warning on line 1117 in Core/Tools/Autorun/GameText.cpp

View workflow job for this annotation

GitHub Actions / Build Generals / vc6-profile+t+e

'int' : forcing value to bool 'true' or 'false' (performance warning)

Check warning on line 1117 in Core/Tools/Autorun/GameText.cpp

View workflow job for this annotation

GitHub Actions / Build Generals / vc6-profile+t+e

'int' : forcing value to bool 'true' or 'false' (performance warning)
}

//============================================================================
Expand Down
4 changes: 2 additions & 2 deletions Core/Tools/Babylon/BabylonDlg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ static void removeLeadingAndTrailing ( char *buffer )

while ( *ptr++ = *first++ );

ptr -= 2;;
ptr -= 2;

while ( (ptr > buffer) && (ch = *ptr) && iswspace ( ch ) )
{
Expand Down Expand Up @@ -330,7 +330,7 @@ BOOL CBabylonDlg::OnInitDialog()
#endif


Ready();;
Ready();

PostMessage ( WM_COMMAND, MAKEWPARAM ( IDC_RELOAD, BN_CLICKED ));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ BOOL CALLBACK ImagePackerProc( HWND hWndDialog, UINT message,
// get the directory listbox
folderList = GetDlgItem( hWndDialog, LIST_FOLDERS );
if( folderList == NULL )
break;;
break;

// get the selected item in the folder listbox
Int selCount;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ class RailroadBehavior : public PhysicsBehavior
};

typedef std::vector<AsciiString> TemplateNameVector;
typedef TemplateNameVector::const_iterator TemplateNameIterator;;
typedef TemplateNameVector::const_iterator TemplateNameIterator;



Expand Down
2 changes: 1 addition & 1 deletion Generals/Code/GameEngine/Source/Common/RTS/Player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3724,7 +3724,7 @@ void Player::xfer( Xfer *xfer )
{

DEBUG_CRASH(( "Player::xfer - m_ai present/missing mismatch" ));
throw SC_INVALID_DATA;;
throw SC_INVALID_DATA;

}
if( m_ai )
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -875,7 +875,7 @@ const Image* ControlBar::calculateVeterancyOverlayForThing( const ThingTemplate
case LEVEL_HEROIC:
return m_rankHeroicIcon;
}
return NULL;;
return NULL;
}

//-------------------------------------------------------------------------------------------------
Expand All @@ -897,7 +897,7 @@ const Image* ControlBar::calculateVeterancyOverlayForObject( const Object *obj )
case LEVEL_HEROIC:
return m_rankHeroicIcon;
}
return NULL;;
return NULL;
}

//-------------------------------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion Generals/Code/GameEngine/Source/GameClient/GameText.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ void GameTextManager::removeLeadingAndTrailing ( Char *buffer )

while ( (*ptr++ = *first++) != 0 );

ptr -= 2;;
ptr -= 2;

while ( (ptr > buffer) && (ch = *ptr) != 0 && iswspace ( ch ) )
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ void DebugDisplay::printf( const Char *format, ...)
DEBUG_ASSERTCRASH( result < sizeof(text), ("text overflow in DebugDisplay::printf() - string too long"));

// find every line and print it
Char *ptr = text;;
Char *ptr = text;
Char *lineStart = ptr;
Int lineLen = 0;
Char ch;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ Bool TerrainVisual::load( AsciiString filename )

m_filenameString = filename;

return TRUE;; // success
return TRUE; // success

}

Expand Down
4 changes: 2 additions & 2 deletions Generals/Code/GameEngine/Source/GameLogic/AI/AIPlayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ void AIPlayer::queueSupplyTruck( void )
m_player->setCanBuildUnits(true);
const ThingTemplate *tTemplate = TheThingFactory->firstTemplate();
while (tTemplate) {
Bool isSupplyTruck = tTemplate->isKindOf(KINDOF_HARVESTER);;
Bool isSupplyTruck = tTemplate->isKindOf(KINDOF_HARVESTER);
if (isSupplyTruck) {
Object *factory = findFactory(tTemplate, false);
if (factory) {
Expand Down Expand Up @@ -3284,7 +3284,7 @@ void TeamInQueue::xfer( Xfer *xfer )

// version
XferVersion currentVersion = 1;
XferVersion version = currentVersion;;
XferVersion version = currentVersion;
xfer->xferVersion( &version, currentVersion );

// xfer work order count
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ void BridgeBehavior::resolveFX( void )
DEBUG_CRASH(( "OCL list '%s' not found", name.str() ));

name = bridgeTemplate->getRepairedToFXString( (BodyDamageType)bodyState, i );
m_repairToFX[ bodyState ][ i ] = TheFXListStore->findFXList( name.str() );;
m_repairToFX[ bodyState ][ i ] = TheFXListStore->findFXList( name.str() );
if( name.isEmpty() == FALSE && m_repairToFX[ bodyState ][ i ] == NULL )
DEBUG_CRASH(( "FX list '%s' not found", name.str() ));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@ Object *SpawnBehavior::reclaimOrphanSpawn( void )
{
if (prevName.compare(*tempName)) // the list may have redundancy, this will skip some of it
continue;
orphanData.m_matchTemplate = TheThingFactory->findTemplate( *tempName );;
orphanData.m_matchTemplate = TheThingFactory->findTemplate( *tempName );
orphanData.m_source = getObject();
orphanData.m_closest = NULL;
orphanData.m_closestDistSq = BIG_DISTANCE;
Expand Down Expand Up @@ -854,7 +854,7 @@ void SpawnBehavior::computeAggregateStates(void)
SlavedUpdateInterface* sdu = (*update)->getSlavedUpdateInterface();
if (sdu != NULL)
{
m_selfTaskingSpawnCount += ( sdu->isSelfTasking());;
m_selfTaskingSpawnCount += ( sdu->isSelfTasking());
break;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2923,7 +2923,7 @@ Bool Object::isAbleToAttack() const
{
//The turret is enable, meaning we have an enabled weapon. Quit.
anyEnabled = TRUE;
break;;
break;
}
}
if( anyWeapon && !anyEnabled )
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -789,7 +789,7 @@ void ParticleUplinkCannonUpdate::createConnectorLasers( IntensityTypes intensity
case IT_LIGHT:
break;
case IT_MEDIUM:
str = data->m_connectorMediumLaserNameName;;
str = data->m_connectorMediumLaserNameName;
break;
case IT_INTENSE:
str = data->m_connectorIntenseLaserNameName;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ void W3DRadar::drawSingleBeaconEvent( Int pixelX, Int pixelY, Int width, Int hei
frameDiff = currentFrame - event->createFrame;

// compute the size of the event marker, it is largest when it starts and smallest at the end
eventSize = REAL_TO_INT( maxEventSize * ( 1.0f - frameDiff / TIME_FROM_FULL_SIZE_TO_SMALL_SIZE) );;
eventSize = REAL_TO_INT( maxEventSize * ( 1.0f - frameDiff / TIME_FROM_FULL_SIZE_TO_SMALL_SIZE) );

// we never let the event size get too small
if( eventSize < minEventSize )
Expand Down Expand Up @@ -494,7 +494,7 @@ void W3DRadar::drawSingleGenericEvent( Int pixelX, Int pixelY, Int width, Int he
frameDiff = currentFrame - event->createFrame;

// compute the size of the event marker, it is largest when it starts and smallest at the end
eventSize = REAL_TO_INT( maxEventSize * ( 1.0f - frameDiff / TIME_FROM_FULL_SIZE_TO_SMALL_SIZE) );;
eventSize = REAL_TO_INT( maxEventSize * ( 1.0f - frameDiff / TIME_FROM_FULL_SIZE_TO_SMALL_SIZE) );

// we never let the event size get too small
if( eventSize < minEventSize )
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1491,7 +1491,7 @@ void W3DVolumetricShadow::RenderMeshVolumeBounds(Int meshIndex, Int lightIndex,
if (nShadowIndicesInBuf > (SHADOW_INDEX_SIZE-numIndex)) //check if room for model verts
{ //flush the buffer by drawing the contents and re-locking again
if (shadowIndexBufferD3D->Lock(0,numIndex*sizeof(short),(unsigned char**)&pvIndices,D3DLOCK_DISCARD) != D3D_OK)
return;;
return;
nShadowIndicesInBuf=0;
nShadowStartBatchIndex=0;
}
Expand Down
2 changes: 1 addition & 1 deletion Generals/Code/Libraries/Source/WWVegas/WW3D2/dx8wrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -1235,7 +1235,7 @@ WWINLINE void DX8Wrapper::Get_Transform(D3DTRANSFORMSTATETYPE transform, Matrix4

WWINLINE const D3DLIGHT8& DX8Wrapper::Peek_Light(unsigned index)
{
return render_state.Lights[index];;
return render_state.Lights[index];
}

WWINLINE bool DX8Wrapper::Is_Light_Enabled(unsigned index)
Expand Down
2 changes: 1 addition & 1 deletion Generals/Code/Libraries/Source/WWVegas/WW3D2/ww3d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@
**
***********************************************************************************/

float WW3D::LogicFrameTimeMs = 1000.0f / WWSyncPerSecond; // initialized to something to avoid division by zero on first use

Check warning on line 163 in Generals/Code/Libraries/Source/WWVegas/WW3D2/ww3d.cpp

View workflow job for this annotation

GitHub Actions / Build Generals / win32-debug+t+e

operator '/': deprecated between enumerations and floating-point types

Check warning on line 163 in Generals/Code/Libraries/Source/WWVegas/WW3D2/ww3d.cpp

View workflow job for this annotation

GitHub Actions / Build Generals / win32-profile+t+e

operator '/': deprecated between enumerations and floating-point types

Check warning on line 163 in Generals/Code/Libraries/Source/WWVegas/WW3D2/ww3d.cpp

View workflow job for this annotation

GitHub Actions / Build Generals / win32+t+e

operator '/': deprecated between enumerations and floating-point types
float WW3D::FractionalSyncMs = 0.0f;
unsigned int WW3D::SyncTime = 0;
unsigned int WW3D::PreviousSyncTime = 0;
Expand Down Expand Up @@ -851,7 +851,7 @@
vp.Y = 0;
vp.Width = width;
vp.Height = height;
vp.MinZ = 0.0f;;
vp.MinZ = 0.0f;
vp.MaxZ = 1.0f;
DX8Wrapper::Set_Viewport(&vp);
DX8Wrapper::Clear(clear, clearz, color, dest_alpha);
Expand Down
2 changes: 1 addition & 1 deletion Generals/Code/Tools/WorldBuilder/src/WHeightMapEdit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1012,7 +1012,7 @@ Int WorldHeightMapEdit::getTileNdxForClass(Int xIndex, Int yIndex, Int textureCl
/* there are actually 4 subcells in a tile. So be funky. :) */
tileNdx = tileNdx << 2;
Int ySubIndex = yIndex&0x01;
Int xSubIndex = xIndex&0x01;;
Int xSubIndex = xIndex&0x01;
tileNdx += 2*ySubIndex;
tileNdx += xSubIndex;
}
Expand Down
4 changes: 2 additions & 2 deletions Generals/Code/Tools/WorldBuilder/src/wbview3d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2343,8 +2343,8 @@ void WbView3d::drawLabels(HDC hdc)
switch(i) {
case 0 : break;
case 1: name = pMapObj->getProperties()->getAsciiString(TheKey_waypointPathLabel1, &exists); break;
case 2: name = pMapObj->getProperties()->getAsciiString(TheKey_waypointPathLabel2, &exists);; break;
case 3: name = pMapObj->getProperties()->getAsciiString(TheKey_waypointPathLabel3, &exists);; break;
case 2: name = pMapObj->getProperties()->getAsciiString(TheKey_waypointPathLabel2, &exists); break;
case 3: name = pMapObj->getProperties()->getAsciiString(TheKey_waypointPathLabel3, &exists); break;
default: name.clear();
}
if (!name.isEmpty()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ class RailroadBehavior : public PhysicsBehavior
};

typedef std::vector<AsciiString> TemplateNameVector;
typedef TemplateNameVector::const_iterator TemplateNameIterator;;
typedef TemplateNameVector::const_iterator TemplateNameIterator;



Expand Down
2 changes: 1 addition & 1 deletion GeneralsMD/Code/GameEngine/Source/Common/RTS/Player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4198,7 +4198,7 @@ void Player::xfer( Xfer *xfer )
{

DEBUG_CRASH(( "Player::xfer - m_ai present/missing mismatch" ));
throw SC_INVALID_DATA;;
throw SC_INVALID_DATA;

}
if( m_ai )
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -959,7 +959,7 @@ const Image* ControlBar::calculateVeterancyOverlayForThing( const ThingTemplate
case LEVEL_HEROIC:
return m_rankHeroicIcon;
}
return NULL;;
return NULL;
}

//-------------------------------------------------------------------------------------------------
Expand All @@ -981,7 +981,7 @@ const Image* ControlBar::calculateVeterancyOverlayForObject( const Object *obj )
case LEVEL_HEROIC:
return m_rankHeroicIcon;
}
return NULL;;
return NULL;
}

//-------------------------------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion GeneralsMD/Code/GameEngine/Source/GameClient/GameText.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ void GameTextManager::removeLeadingAndTrailing ( Char *buffer )

while ( (*ptr++ = *first++) != 0 );

ptr -= 2;;
ptr -= 2;

while ( (ptr > buffer) && (ch = *ptr) != 0 && iswspace ( ch ) )
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ void DebugDisplay::printf( const Char *format, ...)
DEBUG_ASSERTCRASH( result < sizeof(text), ("text overflow in DebugDisplay::printf() - string too long"));

// find every line and print it
Char *ptr = text;;
Char *ptr = text;
Char *lineStart = ptr;
Int lineLen = 0;
Char ch;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ Bool TerrainVisual::load( AsciiString filename )

m_filenameString = filename;

return TRUE;; // success
return TRUE; // success

}

Expand Down
4 changes: 2 additions & 2 deletions GeneralsMD/Code/GameEngine/Source/GameLogic/AI/AIPlayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ void AIPlayer::queueSupplyTruck( void )
m_player->setCanBuildUnits(true);
const ThingTemplate *tTemplate = TheThingFactory->firstTemplate();
while (tTemplate) {
Bool isSupplyTruck = tTemplate->isKindOf(KINDOF_HARVESTER);;
Bool isSupplyTruck = tTemplate->isKindOf(KINDOF_HARVESTER);
if (isSupplyTruck) {
Object *factory = findFactory(tTemplate, false);
if (factory) {
Expand Down Expand Up @@ -3617,7 +3617,7 @@ void TeamInQueue::xfer( Xfer *xfer )

// version
XferVersion currentVersion = 1;
XferVersion version = currentVersion;;
XferVersion version = currentVersion;
xfer->xferVersion( &version, currentVersion );

// xfer work order count
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ void BridgeBehavior::resolveFX( void )
DEBUG_CRASH(( "OCL list '%s' not found", name.str() ));

name = bridgeTemplate->getRepairedToFXString( (BodyDamageType)bodyState, i );
m_repairToFX[ bodyState ][ i ] = TheFXListStore->findFXList( name.str() );;
m_repairToFX[ bodyState ][ i ] = TheFXListStore->findFXList( name.str() );
if( name.isEmpty() == FALSE && m_repairToFX[ bodyState ][ i ] == NULL )
DEBUG_CRASH(( "FX list '%s' not found", name.str() ));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,7 @@ Object *SpawnBehavior::reclaimOrphanSpawn( void )
{
if (prevName.compare(*tempName)) // the list may have redundancy, this will skip some of it
continue;
orphanData.m_matchTemplate = TheThingFactory->findTemplate( *tempName );;
orphanData.m_matchTemplate = TheThingFactory->findTemplate( *tempName );
orphanData.m_source = getObject();
orphanData.m_closest = NULL;
orphanData.m_closestDistSq = BIG_DISTANCE;
Expand Down Expand Up @@ -898,7 +898,7 @@ void SpawnBehavior::computeAggregateStates(void)
SlavedUpdateInterface* sdu = (*update)->getSlavedUpdateInterface();
if (sdu != NULL)
{
m_selfTaskingSpawnCount += ( sdu->isSelfTasking());;
m_selfTaskingSpawnCount += ( sdu->isSelfTasking());
break;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3266,7 +3266,7 @@ Bool Object::isAbleToAttack() const
{
//The turret is enable, meaning we have an enabled weapon. Quit.
anyEnabled = TRUE;
break;;
break;
}
}
if( anyWeapon && !anyEnabled )
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -873,7 +873,7 @@ void ParticleUplinkCannonUpdate::createConnectorLasers( IntensityTypes intensity
case IT_LIGHT:
break;
case IT_MEDIUM:
str = data->m_connectorMediumLaserNameName;;
str = data->m_connectorMediumLaserNameName;
break;
case IT_INTENSE:
str = data->m_connectorIntenseLaserNameName;
Expand Down
Loading
Loading