mirror of
https://github.com/1dot13/source.git
synced 2026-08-12 14:10:23 +02:00
Editor: Disable light sprites that are not in bounds. Actually happens in some sectors (ie Drassen)
Editor: Fix for use of uninitialized variable in undo Editor: Fix for clipping bounds that are offscreen (causes crash) Fix for AP bonus reading from INI Fix mine indexes when looking for creature infestation of mines Final (?) fix for militia reinforcements. Also a change: If you refuse reinforcements, none will come for the entirety of the battle Increase size of cover and LOS grids to fit max radius Fix for uninitialized light level in DistanceVisible Move CheckForEndOfBattle to end of ReduceAttackBusy, to remove a possible militia invalidate upon promotion Change the way Alt-L handles reloading git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@1142 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -35,8 +35,8 @@
|
||||
//******* Local Defines **************************************************
|
||||
|
||||
|
||||
#define DC_MAX_COVER_RANGE 42 //31
|
||||
#define DC__SOLDIER_VISIBLE_RANGE 42 //31
|
||||
#define DC_MAX_COVER_RANGE 43 //31
|
||||
#define DC__SOLDIER_VISIBLE_RANGE 43 //31
|
||||
|
||||
#define DC__MIN_SIZE 4
|
||||
#define DC__MAX_SIZE 21 //11
|
||||
@@ -338,15 +338,15 @@ void CalculateCoverInRadiusAroundGridno( INT16 sTargetGridNo, INT8 bSearchRange
|
||||
|
||||
pSoldier = GetCurrentMercForDisplayCover();
|
||||
|
||||
sCounterX = sCounterY = 0;
|
||||
// sCounterX = sCounterY = 0;
|
||||
|
||||
//Determine the stance to use
|
||||
bStance = GetCurrentMercForDisplayCoverStance();
|
||||
|
||||
//loop through all the gridnos that we are interested in
|
||||
for (sYOffset = -sMaxUp; sYOffset <= sMaxDown; sYOffset++)
|
||||
for (sCounterY = 0, sCounterX = 0, sYOffset = -sMaxUp; sYOffset <= sMaxDown; sYOffset++, sCounterY++, sCounterX = 0)
|
||||
{
|
||||
for (sXOffset = -sMaxLeft; sXOffset <= sMaxRight; sXOffset++)
|
||||
for (sXOffset = -sMaxLeft; sXOffset <= sMaxRight; sXOffset++, sCounterX++)
|
||||
{
|
||||
sGridNo = sTargetGridNo + sXOffset + (MAXCOL * sYOffset);
|
||||
|
||||
@@ -381,7 +381,7 @@ void CalculateCoverInRadiusAroundGridno( INT16 sTargetGridNo, INT8 bSearchRange
|
||||
if ( !(gpWorldLevelData[sGridNo].uiFlags & MAPELEMENT_REACHABLE) )
|
||||
{
|
||||
//skip to the next gridno
|
||||
sCounterX++;
|
||||
// sCounterX++;
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -403,10 +403,10 @@ void CalculateCoverInRadiusAroundGridno( INT16 sTargetGridNo, INT8 bSearchRange
|
||||
// gCoverRadius[ sCounterX ][ sCounterY ].fRoof = fRoof;
|
||||
|
||||
|
||||
sCounterX++;
|
||||
// sCounterX++;
|
||||
}
|
||||
sCounterY++;
|
||||
sCounterX = 0;
|
||||
// sCounterY++;
|
||||
// sCounterX = 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user