2386915 mymax in src/cmd/unit_util_generic.cpp

Find any bugs in Vega Strike? See if someone has already found it, or report them here!
Post Reply
kraehe
Merchant
Merchant
Posts: 34
Joined: Thu Dec 04, 2008 4:26 am

2386915 mymax in src/cmd/unit_util_generic.cpp

Post by kraehe »

Moin Guru's,

I started to play this game ... so I started to read the source ...

Code: Select all

     41 namespace UnitUtil {
     42   template<typename T> static inline T mymin(T a, T b) { return (a<b)?a:b; }
     43   template<typename T> static inline T mymax(T a, T b) { return (a<b)?a:b; }
I fear mymax is a cut'n'paste error ... but I wonder, if fixing it would break getPhysicsPriority.

ciao,Kephra
loki1950
The Shepherd
Posts: 5841
Joined: Fri May 13, 2005 8:37 pm
Location: Ottawa
Contact:

Re: 2386915 mymax in src/cmd/unit_util_generic.cpp

Post by loki1950 »

Welcome kraehe looks like you have been a busy boy :wink: Not sure C++ is not my language of choice hopefully one of the devs finds time to comment.

Enjoy the Choice :)
my box::HP Envy i5-6400 @2Q70GHzx4 8 Gb ram/1 Tb(Win10 64)/3 Tb Mint 19.2/GTX745 4Gb acer S243HL K222HQL
Q8200/Asus P5QDLX/8 Gb ram/WD 2Tb 2-500 G HD/GF GT640 2Gb Mint 17.3 64 bit Win 10 32 bit acer and Lenovo ideapad 320-15ARB Win 10/Mint 19.2
Post Reply