home
·
contact
·
privacy
projects
/
plomrogue
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Server: Remove unneeded yx_uint8_cmp() function.
[plomrogue]
/
src
/
server
/
things.c
diff --git
a/src/server/things.c
b/src/server/things.c
index ebecf6d59e1cb0c5d93ad31b8f16508b413c8256..804f5231d15489aa5f096c32cf0ae67f88f0354c 100644
(file)
--- a/
src/server/things.c
+++ b/
src/server/things.c
@@
-14,7
+14,6
@@
#include "rrand.h" /* rrand() */
#include "thing_actions.h" /* actor_wait */
#include "world.h" /* world */
#include "rrand.h" /* rrand() */
#include "thing_actions.h" /* actor_wait */
#include "world.h" /* world */
-#include "yx_uint8.h" /* yx_uint8_cmp() */
@@
-280,7
+279,7
@@
extern void add_things(uint8_t type, uint8_t n)
uint8_t clear = 1;
for (t = world.things; t; t = t->next)
{
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;
{
clear = 0;
break;