X-Git-Url: https://git.cameronkatri.com/bsdgames-darwin.git/blobdiff_plain/fe2230fd8049e33e0d1bee98ecf09bbc44fc5886..e6838d71c5f48786e0e7ce3a0ff47d9b1f71abcf:/rogue/object.c diff --git a/rogue/object.c b/rogue/object.c index ad0e2a0a..8330f7ed 100644 --- a/rogue/object.c +++ b/rogue/object.c @@ -1,4 +1,4 @@ -/* $NetBSD: object.c,v 1.6 1997/10/15 12:43:35 mycroft Exp $ */ +/* $NetBSD: object.c,v 1.8 1998/11/10 13:01:32 hubertf Exp $ */ /* * Copyright (c) 1988, 1993 @@ -41,7 +41,7 @@ #if 0 static char sccsid[] = "@(#)object.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: object.c,v 1.6 1997/10/15 12:43:35 mycroft Exp $"); +__RCSID("$NetBSD: object.c,v 1.8 1998/11/10 13:01:32 hubertf Exp $"); #endif #endif /* not lint */ @@ -239,6 +239,7 @@ plant_gold(row, col, is_maze) void place_at(obj, row, col) object *obj; + int row, col; { obj->row = row; obj->col = col; @@ -268,6 +269,7 @@ object_at(pack, row, col) object * get_letter_object(ch) + int ch; { object *obj; @@ -293,11 +295,11 @@ free_stuff(objlist) } } -char * +const char * name_of(obj) - object *obj; + const object *obj; { - char *retstring; + const char *retstring; switch(obj->what_is) { case SCROL: @@ -622,7 +624,7 @@ put_stairs() int get_armor_class(obj) - object *obj; + const object *obj; { if (obj) { return(obj->class + obj->d_enchant);