X-Git-Url: https://plomlompom.com/repos/?a=blobdiff_plain;f=src%2Fserver%2Fthings.c;h=5a866bb2f35a7f6395b4b7d005b8dcece45507da;hb=28b8b4234e395c3fdc4800e5cfb3dcd70a15cadf;hp=ebecf6d59e1cb0c5d93ad31b8f16508b413c8256;hpb=58486c337a7b1f04311801d902fed41ed3f67315;p=plomrogue diff --git a/src/server/things.c b/src/server/things.c index ebecf6d..5a866bb 100644 --- a/src/server/things.c +++ b/src/server/things.c @@ -1,4 +1,9 @@ -/* src/server/things.c */ +/* src/server/things.c + * + * This file is part of PlomRogue. PlomRogue is licensed under the GPL version 3 + * or any later version. For details on its copyright, license, and warranties, + * see the file NOTICE in the root directory of the PlomRogue source package. + */ #define _POSIX_C_SOURCE 200809L /* strdup() */ #include "things.h" @@ -14,7 +19,6 @@ #include "rrand.h" /* rrand() */ #include "thing_actions.h" /* actor_wait */ #include "world.h" /* world */ -#include "yx_uint8.h" /* yx_uint8_cmp() */ @@ -280,7 +284,7 @@ extern void add_things(uint8_t type, uint8_t n) uint8_t clear = 1; for (t = world.things; t; t = t->next) { - if (yx_uint8_cmp(&pos, &t->pos) && 0 != t->lifepoints) + if (0 != t->lifepoints && pos.y==t->pos.y && pos.x==t->pos.x) { clear = 0; break;