Rename obj_nameof() to unit_nameof() and move to unitsub.c

This commit is contained in:
Markus Armbruster 2011-05-21 15:42:38 +02:00
parent 766788480f
commit 1c93c5fbc8
10 changed files with 41 additions and 47 deletions

View file

@ -34,7 +34,6 @@
#include <ctype.h>
#include "commands.h"
#include "empobj.h"
#include "news.h"
#include "optlist.h"
#include "unit.h"
@ -138,7 +137,7 @@ scut(void)
}
}
pr("%s scuttled in %s\n",
obj_nameof(&item.gen),
unit_nameof(&item.gen),
xyas(item.gen.x, item.gen.y, player->cnum));
getsect(item.gen.x, item.gen.y, &sect);
if (sect.sct_own == item.gen.own)