parent
79f289c365
commit
766788480f
2 changed files with 0 additions and 20 deletions
|
@ -99,7 +99,6 @@ struct empobj_chr;
|
|||
#define get_empobjp(type, n) ((struct empobj *)ef_ptr((type), (n)))
|
||||
|
||||
extern char *obj_nameof(struct empobj *gp);
|
||||
extern struct empobj_chr *get_empobj_chr(struct empobj *gp);
|
||||
extern char *empobj_chr_name(struct empobj *gp);
|
||||
extern int get_empobj_mob_max(int type);
|
||||
|
||||
|
|
|
@ -56,25 +56,6 @@ obj_nameof(struct empobj *gp)
|
|||
return "The Beast #666";
|
||||
}
|
||||
|
||||
struct empobj_chr *
|
||||
get_empobj_chr(struct empobj *gp)
|
||||
{
|
||||
switch (gp->ef_type) {
|
||||
case EF_LAND:
|
||||
return (struct empobj_chr *)&lchr[(int)gp->type];
|
||||
case EF_SHIP:
|
||||
return (struct empobj_chr *)&mchr[(int)gp->type];
|
||||
case EF_PLANE:
|
||||
return (struct empobj_chr *)&plchr[(int)gp->type];
|
||||
case EF_NUKE:
|
||||
return (struct empobj_chr *)&nchr[(int)gp->type];
|
||||
case EF_SECTOR:
|
||||
return (struct empobj_chr *)&dchr[(int)gp->type];
|
||||
}
|
||||
CANT_REACH();
|
||||
return NULL;
|
||||
}
|
||||
|
||||
char *
|
||||
empobj_chr_name(struct empobj *gp)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue