Changed: Minor changes
--HG-- branch : develop
This commit is contained in:
parent
aa3993681b
commit
478371a666
1 changed files with 8 additions and 8 deletions
|
@ -2160,14 +2160,14 @@ void CProximityMapBuffer::generateZoneProximityMap(const CProximityZone& zone,TB
|
|||
|
||||
#define TEST_MOVE(xoffs,yoffs,newDist)\
|
||||
{\
|
||||
if (((uint32)(x+(xoffs))<zoneWidth) && ((uint32)(y+(yoffs))<zoneHeight))\
|
||||
if (((uint32)(x+xoffs)<zoneWidth) && ((uint32)(y+yoffs)<zoneHeight))\
|
||||
{\
|
||||
uint32 newVal= val+(xoffs)+((yoffs)*zoneWidth);\
|
||||
uint32 newVal= val+xoffs+(yoffs*zoneWidth);\
|
||||
bool isInterior = ((zoneBuffer[newVal] == InteriorValue && newDist > BigValue) || (zoneBuffer[newVal] == ValueBorder && newDist > BigValue));\
|
||||
if (zoneBuffer[newVal]>(newDist) && !isInterior)\
|
||||
if (zoneBuffer[newVal] > newDist && !isInterior)\
|
||||
{\
|
||||
zoneBuffer[newVal]=(newDist);\
|
||||
vects[(newDist)&15].push_back(newVal);\
|
||||
zoneBuffer[newVal] = newDist;\
|
||||
vects[newDist & 15].push_back(newVal);\
|
||||
++entriesToTreat;\
|
||||
}\
|
||||
}\
|
||||
|
|
Loading…
Reference in a new issue