Import of pkgsrc-2014Q1
This commit is contained in:
14
games/ivan/patches/patch-Main_Source_human.cpp
Normal file
14
games/ivan/patches/patch-Main_Source_human.cpp
Normal file
@@ -0,0 +1,14 @@
|
||||
$NetBSD: patch-Main_Source_human.cpp,v 1.1 2014/02/09 17:09:03 wiedi Exp $
|
||||
|
||||
fix ambiguous sqrt on SunOS
|
||||
--- Main/Source/human.cpp.orig 2004-12-10 21:10:04.000000000 +0000
|
||||
+++ Main/Source/human.cpp
|
||||
@@ -2701,7 +2701,7 @@ void smith::BeTalkedTo()
|
||||
|
||||
void humanoid::CalculateDodgeValue()
|
||||
{
|
||||
- DodgeValue = 0.05 * GetMoveEase() * GetAttribute(AGILITY) / sqrt(GetSize());
|
||||
+ DodgeValue = 0.05 * GetMoveEase() * GetAttribute(AGILITY) / sqrt((double)GetSize());
|
||||
|
||||
if(IsFlying())
|
||||
DodgeValue *= 2;
|
||||
Reference in New Issue
Block a user