X-Git-Url: https://git.cameronkatri.com/bsdgames-darwin.git/blobdiff_plain/56e441081ab7a3c68356451ea421a474435db54c..e6838d71c5f48786e0e7ce3a0ff47d9b1f71abcf:/rogue/monster.c?ds=sidebyside diff --git a/rogue/monster.c b/rogue/monster.c index c1416eb8..67bde91d 100644 --- a/rogue/monster.c +++ b/rogue/monster.c @@ -1,4 +1,4 @@ -/* $NetBSD: monster.c,v 1.5 1998/07/21 07:01:55 hubertf Exp $ */ +/* $NetBSD: monster.c,v 1.7 1998/11/10 13:01:32 hubertf Exp $ */ /* * Copyright (c) 1988, 1993 @@ -41,7 +41,7 @@ #if 0 static char sccsid[] = "@(#)monster.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: monster.c,v 1.5 1998/07/21 07:01:55 hubertf Exp $"); +__RCSID("$NetBSD: monster.c,v 1.7 1998/11/10 13:01:32 hubertf Exp $"); #endif #endif /* not lint */ @@ -62,7 +62,7 @@ __RCSID("$NetBSD: monster.c,v 1.5 1998/07/21 07:01:55 hubertf Exp $"); object level_monsters; boolean mon_disappeared; -char *m_names[] = { +const char *const m_names[] = { "aquator", "bat", "centaur", @@ -509,7 +509,7 @@ move_mon_to(monster, row, col) int mon_can_go(monster, row, col) - object *monster; + const object *monster; short row, col; { object *obj; @@ -595,9 +595,9 @@ wake_room(rn, entering, row, col) } } -char * +const char * mon_name(monster) - object *monster; + const object *monster; { short ch; @@ -823,7 +823,7 @@ char gr_obj_char() { short r; - char *rs = "%!?]=/):*"; + const char *rs = "%!?]=/):*"; r = get_rand(0, 8); @@ -867,7 +867,8 @@ aggravate() boolean mon_sees(monster, row, col) - object *monster; + const object *monster; + int row, col; { short rn, rdif, cdif, retval;