mirror of
https://github.com/1dot13/source.git
synced 2026-07-29 13:52:17 +02:00
- bugfixes: Fixed two bugs in attacks.cpp, that AalaarDB posted in the Bears Pi
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@1074 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -248,7 +248,7 @@ void CalcBestShot(SOLDIERTYPE *pSoldier, ATTACKTYPE *pBestShot, BOOLEAN shootUns
|
||||
// calc next attack's minimum shooting cost (excludes readying & turning)
|
||||
ubRawAPCost = MinAPsToShootOrStab(pSoldier,pOpponent->sGridNo,FALSE);
|
||||
|
||||
if (pOpponent->sGridNo != pSoldier->sLastTarget)
|
||||
if (pOpponent->sGridNo == pSoldier->sLastTarget)
|
||||
{
|
||||
// raw AP cost calculation included cost of changing target!
|
||||
ubRawAPCost -= AP_CHANGE_TARGET;
|
||||
@@ -1266,8 +1266,6 @@ void CalcBestStab(SOLDIERTYPE *pSoldier, ATTACKTYPE *pBestStab, BOOLEAN fBladeAt
|
||||
// if opponent doesn't see the attacker
|
||||
if (pOpponent->bOppList[pSoldier->ubID] != SEEN_CURRENTLY)
|
||||
{
|
||||
fSurpriseStab = TRUE;
|
||||
|
||||
// and he's only one space away from attacker
|
||||
if (SpacesAway(pSoldier->sGridNo,pOpponent->sGridNo) == 1)
|
||||
{
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="Windows-1252"?>
|
||||
<VisualStudioProject
|
||||
ProjectType="Visual C++"
|
||||
Version="8.00"
|
||||
Version="8,00"
|
||||
Name="ja2_2005Express"
|
||||
ProjectGUID="{F44669E7-74AC-444B-B75F-F16F4B9F0265}"
|
||||
RootNamespace="ja2_2005Express"
|
||||
@@ -17,7 +17,7 @@
|
||||
<Configurations>
|
||||
<Configuration
|
||||
Name="Debug|Win32"
|
||||
OutputDirectory="C:\Program Files\Jagged Alliance 2 1.13"
|
||||
OutputDirectory="C:\Games\Jagged Alliance 2"
|
||||
IntermediateDirectory="$(ConfigurationName)"
|
||||
ConfigurationType="1"
|
||||
InheritedPropertySheets=".\ja2_2005Express.vsprops;.\ja2_2005ExpressDebug.vsprops"
|
||||
@@ -97,7 +97,7 @@
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="Release|Win32"
|
||||
OutputDirectory="C:\Program Files\Jagged Alliance 2 1.13"
|
||||
OutputDirectory="C:\Games\Jagged Alliance 2"
|
||||
IntermediateDirectory="$(ConfigurationName)"
|
||||
ConfigurationType="1"
|
||||
InheritedPropertySheets=".\ja2_2005Express.vsprops"
|
||||
@@ -142,7 +142,7 @@
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalDependencies="Winmm.lib"
|
||||
OutputFile="$(OutDir)\ja2_rel.exe"
|
||||
OutputFile="$(OutDir)\ja2_rel._1066.exe"
|
||||
LinkIncremental="1"
|
||||
GenerateDebugInformation="true"
|
||||
SubSystem="2"
|
||||
|
||||
Reference in New Issue
Block a user