mirror of
https://github.com/1dot13/source.git
synced 2026-08-19 14:20:30 +02:00
cleaned up code: some comiler-warnings fixed, obsolete code removed (oops..and some whitespace stuff) (by CleaningWoman)
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@6102 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
+3
-2
@@ -349,7 +349,8 @@ void RevealRoofsAndItems(SOLDIERTYPE *pSoldier, UINT32 itemsToo, BOOLEAN fShowLo
|
||||
if ( gubGridNoValue == 255 )
|
||||
{
|
||||
// Reset!
|
||||
memset( gubGridNoMarkers, 0, sizeof( gubGridNoMarkers ) );
|
||||
Assert(gubGridNoMarkers);
|
||||
memset(gubGridNoMarkers, 0, sizeof(UINT8)*WORLD_MAX);
|
||||
gubGridNoValue = 1;
|
||||
}
|
||||
|
||||
@@ -373,7 +374,7 @@ void RevealRoofsAndItems(SOLDIERTYPE *pSoldier, UINT32 itemsToo, BOOLEAN fShowLo
|
||||
range = pSoldier->bViewRange;
|
||||
|
||||
// Flugente: adjust sightrange
|
||||
range = (UINT16)( (range * (100 + pSoldier->GetSightRangeBonus()) ) / 100);
|
||||
range = (UINT8)( (range * (100 + pSoldier->GetSightRangeBonus()) ) / 100);
|
||||
|
||||
// balance item viewing range between normal and the limit set by opplist-type functions -- CJC
|
||||
range = (AdjustMaxSightRangeForEnvEffects( pSoldier, LightTrueLevel( pSoldier->sGridNo, pSoldier->pathing.bLevel), range ) + range) / 2;
|
||||
|
||||
Reference in New Issue
Block a user