Skip to content
Merged
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
8 changes: 4 additions & 4 deletions Core/GameEngine/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ set(GAMEENGINE_SRC
# Include/Common/Money.h
# Include/Common/MultiplayerSettings.h
# Include/Common/NameKeyGenerator.h
# Include/Common/ObjectStatusTypes.h
Include/Common/ObjectStatusTypes.h
# Include/Common/OSDisplay.h
# Include/Common/Overridable.h
# Include/Common/Override.h
Expand All @@ -94,7 +94,7 @@ set(GAMEENGINE_SRC
# Include/Common/ProductionPrerequisite.h
# Include/Common/QuickmatchPreferences.h
# Include/Common/QuotedPrintable.h
# Include/Common/Radar.h
Include/Common/Radar.h
Include/Common/RAMFile.h
Include/Common/RandomValue.h
# Include/Common/Recorder.h
Expand Down Expand Up @@ -660,9 +660,9 @@ set(GAMEENGINE_SRC
# Source/Common/System/List.cpp
Source/Common/System/LocalFile.cpp
Source/Common/System/LocalFileSystem.cpp
# Source/Common/System/ObjectStatusTypes.cpp
Source/Common/System/ObjectStatusTypes.cpp
# Source/Common/System/QuotedPrintable.cpp
# Source/Common/System/Radar.cpp
Source/Common/System/Radar.cpp
Source/Common/System/RAMFile.cpp
# Source/Common/System/registry.cpp
# Source/Common/System/SaveGame/GameState.cpp
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ enum ObjectStatusTypes CPP_11(: Int)
OBJECT_STATUS_NO_ATTACK_FROM_AI, ///< attacking this object may not be done from commandSource == CMD_FROM_AI
OBJECT_STATUS_IGNORING_STEALTH, ///< temporarily ignoring all stealth bits. (used only for some special-case mine clearing stuff.)
OBJECT_STATUS_IS_CARBOMB, ///< Object is now a carbomb.

// TheSuperHackers @info New statuses added in Zero Hour
// Note: Loading old save games that do not track these flags in objects will not recover them. Expect logic bugs.
OBJECT_STATUS_DECK_HEIGHT_OFFSET, ///< Object factors deck height on top of ground altitude.
OBJECT_STATUS_RIDER1,
OBJECT_STATUS_RIDER2,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
** Command & Conquer Generals(tm)
** Command & Conquer Generals Zero Hour(tm)
** Copyright 2025 Electronic Arts Inc.
**
** This program is free software: you can redistribute it and/or modify
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ const char* const ObjectStatusMaskType::s_bitNameList[] =
"NO_ATTACK_FROM_AI",
"IGNORING_STEALTH",
"IS_CARBOMB",
// TheSuperHackers @info New statuses added in Zero Hour
"DECK_HEIGHT_OFFSET",
"STATUS_RIDER1",
"STATUS_RIDER2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -362,15 +362,15 @@ void Radar::newMap( TerrainLogic *terrain )
m_waterAverageZ = 0.0f;
Coord3D worldPoint;

// since we're averaging let's skip every second sample...
worldPoint.y=0;
// since we're averaging let's skip every second sample...
worldPoint.y=0;
for( y = 0; y < RADAR_CELL_HEIGHT; y+=2, worldPoint.y+=2.0*m_ySample )
{
worldPoint.x=0;
for( x = 0; x < RADAR_CELL_WIDTH; x+=2, worldPoint.x+=2.0*m_xSample )
{
worldPoint.x=0;
for( x = 0; x < RADAR_CELL_WIDTH; x+=2, worldPoint.x+=2.0*m_xSample )
{
// don't use this, we don't really need the
// Z position by this function... radarToWorld( &radarPoint, &worldPoint );
// Z position by this function... radarToWorld( &radarPoint, &worldPoint );
// and this is done by isUnderwater anyway: z = terrain->getGroundHeight( worldPoint.x, worldPoint.y );
Real z,waterZ;
if( terrain->isUnderwater( worldPoint.x, worldPoint.y, &waterZ, &z ) )
Expand All @@ -383,9 +383,8 @@ void Radar::newMap( TerrainLogic *terrain )
m_terrainAverageZ += z;
terrainSamples++;
}

}
}
}

// avoid divide by zeros
if( terrainSamples == 0 )
Expand Down Expand Up @@ -436,7 +435,7 @@ RadarObjectType Radar::addObject( Object *obj )
//Because we have support for disguised units pretending to be units from another
//team, we need to intercept it here and make sure it's rendered appropriately
//based on which client is rendering it.
StealthUpdate *update = obj->getStealth();
StealthUpdate *update = obj->getStealth();
if( update )
{
if( update->isDisguised() )
Expand Down Expand Up @@ -1506,7 +1505,7 @@ void Radar::xfer( Xfer *xfer )
XferVersion version = currentVersion;
xfer->xferVersion( &version, currentVersion );


if (version <= 1)
{
const Int localPlayerIndex = ThePlayerList->getLocalPlayer()->getPlayerIndex();
Expand Down
4 changes: 2 additions & 2 deletions Core/GameEngineDevice/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set(GAMEENGINEDEVICE_SRC
# Include/W3DDevice/Common/W3DConvert.h
# Include/W3DDevice/Common/W3DFunctionLexicon.h
# Include/W3DDevice/Common/W3DModuleFactory.h
# Include/W3DDevice/Common/W3DRadar.h
Include/W3DDevice/Common/W3DRadar.h
# Include/W3DDevice/Common/W3DThingFactory.h
# Include/W3DDevice/GameClient/BaseHeightMap.h
# Include/W3DDevice/GameClient/camerashakesystem.h
Expand Down Expand Up @@ -93,7 +93,7 @@ set(GAMEENGINEDEVICE_SRC
Source/MilesAudioDevice/MilesAudioManager.cpp
Source/VideoDevice/Bink/BinkVideoPlayer.cpp
# Source/W3DDevice/Common/System/W3DFunctionLexicon.cpp
# Source/W3DDevice/Common/System/W3DRadar.cpp
Source/W3DDevice/Common/System/W3DRadar.cpp
# Source/W3DDevice/Common/Thing/W3DModuleFactory.cpp
# Source/W3DDevice/Common/Thing/W3DThingFactory.cpp
# Source/W3DDevice/Common/W3DConvert.cpp
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -890,8 +890,8 @@ void W3DRadar::init( void )
DEBUG_ASSERTCRASH( m_overlayTexture, ("W3DRadar: Unable to allocate overlay texture") );

// set filter type for the overlay texture, try it and see if you like it, I don't ;)
// m_overlayTexture->Set_Min_Filter( TextureClass::FILTER_TYPE_NONE );
// m_overlayTexture->Set_Mag_Filter( TextureClass::FILTER_TYPE_NONE );
// m_overlayTexture->Set_Min_Filter( TextureFilterClass::FILTER_TYPE_NONE );
// m_overlayTexture->Set_Mag_Filter( TextureFilterClass::FILTER_TYPE_NONE );

// allocate our shroud texture
m_shroudTexture = MSGNEW("TextureClass") TextureClass( m_textureWidth, m_textureHeight,
Expand Down Expand Up @@ -1136,7 +1136,7 @@ void W3DRadar::buildTerrainTexture( TerrainLogic *terrain )
radarToWorld2D( &radarPoint, &worldPoint );

// get color for this Z and add to our sample color
Real underwaterZ;
Real underwaterZ;
if( terrain->isUnderwater( worldPoint.x, worldPoint.y, NULL, &underwaterZ ) )
{
// this is our "color" for water
Expand Down Expand Up @@ -1544,7 +1544,7 @@ void W3DRadar::refreshObjects()
// they are godlike and can see everything)
//
if( obj->getRadarPriority() == RADAR_PRIORITY_LOCAL_UNIT_ONLY &&
obj->getControllingPlayer() != player &&
obj->getControllingPlayer() != player &&
player->isPlayerActive() )
continue;

Expand Down
8 changes: 4 additions & 4 deletions Generals/Code/GameEngine/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ set(GAMEENGINE_SRC
Include/Common/Money.h
Include/Common/MultiplayerSettings.h
Include/Common/NameKeyGenerator.h
Include/Common/ObjectStatusTypes.h
# Include/Common/ObjectStatusTypes.h
Include/Common/OSDisplay.h
Include/Common/Overridable.h
Include/Common/Override.h
Expand All @@ -87,7 +87,7 @@ set(GAMEENGINE_SRC
Include/Common/ProductionPrerequisite.h
Include/Common/QuickmatchPreferences.h
Include/Common/QuotedPrintable.h
Include/Common/Radar.h
# Include/Common/Radar.h
# Include/Common/RAMFile.h
# Include/Common/RandomValue.h
Include/Common/Recorder.h
Expand Down Expand Up @@ -610,9 +610,9 @@ set(GAMEENGINE_SRC
# Source/Common/System/LocalFile.cpp
# Source/Common/System/LocalFileSystem.cpp
#Source/Common/System/MemoryInit.cpp
Source/Common/System/ObjectStatusTypes.cpp
# Source/Common/System/ObjectStatusTypes.cpp
Source/Common/System/QuotedPrintable.cpp
Source/Common/System/Radar.cpp
# Source/Common/System/Radar.cpp
# Source/Common/System/RAMFile.cpp
Source/Common/System/registry.cpp
Source/Common/System/SaveGame/GameState.cpp
Expand Down
124 changes: 0 additions & 124 deletions Generals/Code/GameEngine/Include/Common/ObjectStatusTypes.h

This file was deleted.

This file was deleted.

Loading
Loading