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?
ID:151219
Feb 17 2001, 11:44 am
|
|
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)