Edit

IABSD.fr/ports/games/crimson/patches/patch-src_cf_path_cpp

Branch :

  • Show log

    Commit

  • Author : naddy
    Date : 2022-03-11 19:04:03
    Hash : 9433d2a3
    Message : drop RCS Ids

  • games/crimson/patches/patch-src_cf_path_cpp
  • clang fix taken from FreeBSD
    
    Index: src/cf/path.cpp
    --- src/cf/path.cpp.orig
    +++ src/cf/path.cpp
    @@ -212,7 +212,7 @@ short Path::Find( const Unit *u, const Point &start, c
     // 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;
     }
     
    @@ -249,7 +249,7 @@ unsigned short Path::StepsToDest( const Point &pos ) c
     // RETURNS    : TRUE if search aborted, FALSE otherwise
     ////////////////////////////////////////////////////////////////////////
     
    -inline bool Path::StopSearch( const PathNode &next ) const {
    +bool Path::StopSearch( const PathNode &next ) const {
       return Distance( next.pos, end ) <= deviation;
     }