Skip to content
Open
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
3 changes: 2 additions & 1 deletion source/D2Common/src/Path/PathMisc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1118,6 +1118,7 @@ int __stdcall D2Common_10236(D2UnitStrc* pUnit, int a2)

//1.10f: Inlined
//1.13c: D2Common.0x6FD5CEB0
//1.14d: 0x006502D0
void sub_6FD5CEB0(D2DynamicPathStrc* pDynamicPath, int nBaseVelocity)
{
if (nBaseVelocity <= 0)
Expand All @@ -1132,7 +1133,7 @@ void sub_6FD5CEB0(D2DynamicPathStrc* pDynamicPath, int nBaseVelocity)
{
const int nOldVelocity = pDynamicPath->dwMaxVelocity;
pDynamicPath->dwVelocity = nAcceleration + pDynamicPath->dwVelocity;
if (pDynamicPath->dwVelocity >= nOldVelocity)
if (pDynamicPath->dwVelocity > nOldVelocity)
{
pDynamicPath->dwVelocity = nOldVelocity;
pDynamicPath->dwAcceleration = 0;
Expand Down
Loading