ID:151219
 
is this correct?

var/dist = get_dist(src, target)
if(!dist > 1)
bla bla

will this make it impossible to attack people that isn't standing next to you?
On 2/17/01 1:44 pm Kaidorin wrote:
is this correct?

var/dist = get_dist(src, target)
if(!dist > 1)
bla bla

will this make it impossible to attack people that isn't standing next to you?

Looks good, except the ! might be resolved before the >, which would mess things up for you. I'd rewrite it in one of these two ways:

if(!(dist > 1))

or

if(dist <= 1)