summaryrefslogtreecommitdiff
path: root/games/crimsonfields/patches/patch-src_cf_path.cpp
blob: a4909735d59bc8113664f00c7756c251ed89ab65 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$NetBSD: patch-src_cf_path.cpp,v 1.1 2012/11/07 15:24:39 joerg Exp $

The inline violates the ODR rule for Path.

--- src/cf/path.cpp.orig	2012-11-05 17:03:05.000000000 +0000
+++ src/cf/path.cpp
@@ -212,7 +212,7 @@ short Path::Find( const Unit *u, const P
 // RETURNS    : estimated cost to destination
 ////////////////////////////////////////////////////////////////////////
 
-inline unsigned short Path::ETA( const Point &p ) const {
+unsigned short Path::ETA( const Point &p ) const {
   return Distance( p, end ) * quality;
 }