[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[glob2-devel] Building *Team::findNearestFood(Unit *unit)
From: |
Nuage |
Subject: |
[glob2-devel] Building *Team::findNearestFood(Unit *unit) |
Date: |
Mon, 26 Dec 2005 17:37:12 +0100 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20051107 |
Hello, who did add this comment into
Building *Team::findNearestFood(Unit *unit)
I don't know where it's wrong, but it is mean to act this way. If you don't turn
on food vision, then you can't convert units. Anyone want another behaviour ?
Nuage
if (!concurency)
return NULL;//This is bad, bad, bad. It means that if you have no
opponents
with Inn View on,
//your units CANNOT be converted --- even if an enemy inn is in normal
view range.
//Later in the code, this turns out to mean that no team can convert
any units
without
//both being your enemy and turning on Inn View. This is inconsistent
with the
current
//documentation and with the meaning of 'inn view'. It's a convenient
way to do
things,
//but should be done away with sometime.
- [glob2-devel] Building *Team::findNearestFood(Unit *unit),
Nuage <=