mirror of https://github.com/basinserver/basin/
parent
70367d38ac
commit
b8a7292475
2
src/ai.c
2
src/ai.c
|
@ -623,7 +623,7 @@ int ai_shouldnearestattackabletarget(struct world* world, struct entity* entity,
|
|||
cd = dsq;
|
||||
ce = value;
|
||||
}
|
||||
END_HASHMAP_ITERATION(world->entities)/;
|
||||
END_HASHMAP_ITERATION(world->entities);
|
||||
if (entity->attacking != NULL && ce != entity->attacking) put_hashmap(entity->attacking->attackers, entity->id, NULL);
|
||||
if (ce != NULL && entity->attacking != ce) {
|
||||
put_hashmap(ce->attackers, entity->id, entity);
|
||||
|
|
Loading…
Reference in New Issue