File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change 1
1
/* vim:set cin ft=c sw=4 sts=4 ts=8 et ai cino=Ls\:0t0(0 : -*- mode:c;fill-column:80;tab-width:8;c-basic-offset:4;indent-tabs-mode:nil;c-file-style:"k&r" -*-*/
2
- /* Last modified by Alex Smith, 2014-04-05 */
2
+ /* Last modified by Alex Smith, 2017-07-15 */
3
3
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
4
4
/* NetHack may be freely redistributed. See license for details. */
5
5
@@ -81,7 +81,7 @@ extern const struct permonst mons[]; /* the master list of monster types */
81
81
# define FAST_SPEED 15
82
82
# define VERY_FAST 24
83
83
84
- # define NON_PM PM_PLAYERMON /* "not a monster" */
84
+ # define NON_PM (-1) /* "not a monster" */
85
85
# define LOW_PM (NON_PM+1) /* first monster in mons[] */
86
86
# define SPECIAL_PM PM_LONG_WORM_TAIL /* [normal] < ~ < [special] */
87
87
/* mons[SPECIAL_PM] through mons[NUMMONS-1], inclusive, are never
Original file line number Diff line number Diff line change 1
1
/* vim:set cin ft=c sw=4 sts=4 ts=8 et ai cino=Ls\:0t0(0 : -*- mode:c;fill-column:80;tab-width:8;c-basic-offset:4;indent-tabs-mode:nil;c-file-style:"k&r" -*-*/
2
- /* Last modified by Alex Smith, 2015-03-21 */
2
+ /* Last modified by Alex Smith, 2017-07-15 */
3
3
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
4
4
/* Copyright (c) M. Stephenson, 1990, 1991. */
5
5
/* Copyright (c) Dean Luick, 1990. */
@@ -959,9 +959,6 @@ do_permonst(const char *outfile)
959
959
fprintf (ofp , "%s" , Dont_Edit_Code );
960
960
fprintf (ofp , "#ifndef PM_H\n#define PM_H\n" );
961
961
962
- if (strcmp (mons [0 ].mname , "playermon" ) != 0 )
963
- fprintf (ofp , "\n#define\tPM_PLAYERMON\t(-1)" );
964
-
965
962
for (i = 0 ; mons [i ].mlet ; i ++ ) {
966
963
fprintf (ofp , "\n#define\tPM_" );
967
964
if (mons [i ].mlet == S_HUMAN && !strncmp (mons [i ].mname , "were" , 4 ))
You can’t perform that action at this time.
0 commit comments