]> git.pond.sub.org Git - empserver/blobdiff - src/lib/subs/empobj.c
Rename obj_nameof() to unit_nameof() and move to unitsub.c
[empserver] / src / lib / subs / empobj.c
index fb38f739c98735b082eb8a8405d476cfc742a605..a43c7281ed91b222699b9de3d1be2adb053ac2d9 100644 (file)
 #include "empobj.h"
 #include "file.h"
 #include "optlist.h"
-#include "prototypes.h"
-
-char *
-obj_nameof(struct empobj *gp)
-{
-    switch (gp->ef_type) {
-    case EF_SHIP:
-       return prship((struct shpstr *)gp);
-    case EF_PLANE:
-       return prplane((struct plnstr *)gp);
-    case EF_LAND:
-       return prland((struct lndstr *)gp);
-    case EF_NUKE:
-       return prnuke((struct nukstr *)gp);
-    }
-    CANT_REACH();
-    return "The Beast #666";
-}
 
 char *
 empobj_chr_name(struct empobj *gp)