[Widelands-dev] path & findpath question

2014-09-17 Thread Tibor Bamhor
Hi, When testing road building in AI I found that findpath sometimes returns nonsensical paths. It claims that it found paths between two points (a have them printed out), but when I look at the points on map, they are not connectable without crossing/using another road. Subsequently AI runs send

Re: [Widelands-dev] Meaning of the defense value

2014-09-17 Thread Fòram na Gàidhlig
% = Modulo (integer remainder) https://en.wikipedia.org/wiki/Operators_in_C_and_C%2B%2B#Arithmetic_operators 17/09/2014 09:39, sgrìobh wl-zocker: > That seems indeed to be the relevant part. > > I do not understand what the percent signs mean, but from "m_damage = > attack - (attack * defender-

Re: [Widelands-dev] Meaning of the defense value

2014-09-17 Thread wl-zocker
That seems indeed to be the relevant part. I do not understand what the percent signs mean, but from "m_damage = attack - (attack * defender->get_defense()) / 100;", I deduct that the defense is a relative value. I will fix it in the tutorial. Thank you for your help. -Ursprüngliche Nac