home
·
contact
·
privacy
projects
/
plomrogue
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Reformatted map_objects.h to ensure max line length of 80 chars.
[plomrogue]
/
src
/
map_object_actions.c
diff --git
a/src/map_object_actions.c
b/src/map_object_actions.c
index 58915f62d3b4911a71863042d16486d01a9c46a4..ff1ea90adeab06775722f1309597ef1632f5f993 100644
(file)
--- a/
src/map_object_actions.c
+++ b/
src/map_object_actions.c
@@
-19,7
+19,7
@@
extern void move_monster(struct World * world, struct Monster * monster)
struct MapObjDef * mod = get_map_obj_def(world, monster->map_obj.type);
char * desc = mod->desc;
char * desc_other;
struct MapObjDef * mod = get_map_obj_def(world, monster->map_obj.type);
char * desc = mod->desc;
char * desc_other;
- if (yx_uint16_cmp(
t,
world->player->pos))
+ if (yx_uint16_cmp(
&t, &
world->player->pos))
{
sprintf(msg, "\nThe %s hits you.", desc);
update_log(world, msg);
{
sprintf(msg, "\nThe %s hits you.", desc);
update_log(world, msg);
@@
-39,7
+39,7
@@
extern void move_monster(struct World * world, struct Monster * monster)
{
continue;
}
{
continue;
}
- if (yx_uint16_cmp(
t,
other_monster->map_obj.pos))
+ if (yx_uint16_cmp(
&t, &
other_monster->map_obj.pos))
{
mod = get_map_obj_def(world, other_monster->map_obj.type);
desc_other = mod->desc;
{
mod = get_map_obj_def(world, other_monster->map_obj.type);
desc_other = mod->desc;
@@
-68,7
+68,7
@@
extern void move_player (struct World * world, enum dir d)
monster != 0;
monster = monster->map_obj.next)
{
monster != 0;
monster = monster->map_obj.next)
{
- if (yx_uint16_cmp(
t,
monster->map_obj.pos))
+ if (yx_uint16_cmp(
&t, &
monster->map_obj.pos))
{
mod = get_map_obj_def(world, monster->map_obj.type);
desc = mod->desc;
{
mod = get_map_obj_def(world, monster->map_obj.type);
desc = mod->desc;