Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
NovaRain committed Jun 3, 2019
2 parents e105b8c + 2299113 commit 250e7be
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions sfall/Modules/Combat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,8 @@ static double ApplyModifiers(std::vector<KnockbackModifier>* mods, fo::GameObjec

static DWORD __fastcall CalcKnockbackMod(int knockValue, int damage, fo::GameObject* weapon, fo::GameObject* attacker, fo::GameObject* target) {
double result = (double)damage / (double)knockValue;
result = ApplyModifiers(&mWeapons, weapon, result);
result = ApplyModifiers(&mAttackers, attacker, result);
if (weapon) result = ApplyModifiers(&mWeapons, weapon, result);
if (attacker) result = ApplyModifiers(&mAttackers, attacker, result);
result = ApplyModifiers(&mTargets, target, result);
return (DWORD)floor(result);
}
Expand All @@ -192,9 +192,9 @@ static void __declspec(naked) compute_dmg_damage_hack() {
__asm {
push ecx
push esi; // Target
mov eax, -1;
push eax; // Attacker
push eax; // Weapon
xor eax, eax;
push eax; // Attacker (no attacker)
push eax; // Weapon (no weapon)
mov edx, ebx; // Damage
mov ecx, 10; // Knockback value
call CalcKnockbackMod;
Expand Down
6 changes: 3 additions & 3 deletions sfall/ddraw.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@
<ExceptionHandling>Sync</ExceptionHandling>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
<BufferSecurityCheck>false</BufferSecurityCheck>
<EnableEnhancedInstructionSet>NotSet</EnableEnhancedInstructionSet>
<EnableEnhancedInstructionSet>NoExtensions</EnableEnhancedInstructionSet>
<FloatingPointModel>Fast</FloatingPointModel>
<TreatWChar_tAsBuiltInType>false</TreatWChar_tAsBuiltInType>
<RuntimeTypeInfo>false</RuntimeTypeInfo>
Expand Down Expand Up @@ -197,7 +197,7 @@
<ExceptionHandling>Sync</ExceptionHandling>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
<BufferSecurityCheck>false</BufferSecurityCheck>
<EnableEnhancedInstructionSet>NotSet</EnableEnhancedInstructionSet>
<EnableEnhancedInstructionSet>NoExtensions</EnableEnhancedInstructionSet>
<FloatingPointModel>Fast</FloatingPointModel>
<TreatWChar_tAsBuiltInType>false</TreatWChar_tAsBuiltInType>
<RuntimeTypeInfo>false</RuntimeTypeInfo>
Expand Down Expand Up @@ -246,7 +246,7 @@
<ExceptionHandling>Sync</ExceptionHandling>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
<BufferSecurityCheck>false</BufferSecurityCheck>
<EnableEnhancedInstructionSet>NotSet</EnableEnhancedInstructionSet>
<EnableEnhancedInstructionSet>NoExtensions</EnableEnhancedInstructionSet>
<FloatingPointModel>Fast</FloatingPointModel>
<TreatWChar_tAsBuiltInType>false</TreatWChar_tAsBuiltInType>
<RuntimeTypeInfo>false</RuntimeTypeInfo>
Expand Down
4 changes: 2 additions & 2 deletions sfall/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@
#define VERSION_MAJOR 4
#define VERSION_MINOR 1
#define VERSION_BUILD 8
#define VERSION_REV 0
#define VERSION_REV 1

#define VERSION_STRING "4.1.8"
#define VERSION_STRING "4.1.8.1"

//#define CHECK_VAL (4)

0 comments on commit 250e7be

Please sign in to comment.