Rename obj_nameof() to unit_nameof() and move to unitsub.c
This commit is contained in:
parent
766788480f
commit
1c93c5fbc8
10 changed files with 41 additions and 47 deletions
|
@ -37,7 +37,6 @@
|
|||
|
||||
#include <ctype.h>
|
||||
#include "commands.h"
|
||||
#include "empobj.h"
|
||||
#include "item.h"
|
||||
#include "land.h"
|
||||
#include "optlist.h"
|
||||
|
@ -363,7 +362,7 @@ void
|
|||
gift(natid givee, natid giver, void *ptr, char *mesg)
|
||||
{
|
||||
if (giver != givee)
|
||||
wu(0, givee, "%s %s %s\n", cname(giver), obj_nameof(ptr), mesg);
|
||||
wu(0, givee, "%s %s %s\n", cname(giver), unit_nameof(ptr), mesg);
|
||||
unit_give_away(ptr, givee, 0);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue