blob: a5a3ddb53d5ca43795f6a2cb015a1044e349d484 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
$NetBSD: patch-konquest_gameboard.cc,v 1.1 2013/09/12 20:11:30 jperkin Exp $
Avoid "error: call of overloaded <func> is ambiguous"
--- konquest/gameboard.cc.orig 2005-09-10 08:18:23.000000000 +0000
+++ konquest/gameboard.cc
@@ -405,7 +405,7 @@ GameBoard::turn()
}
if (skip) continue;
- shipsToSend = (int)floor((home->getFleet().getShipCount() - attack->getFleet().getShipCount()) / 2) ;
+ shipsToSend = (int)floor((float)(home->getFleet().getShipCount() - attack->getFleet().getShipCount()) / 2) ;
target = attack;
hasDestination = true;
|