Moved pray.c globals to instance_globals.

This commit is contained in:
Bart House
2018-11-23 16:50:23 -08:00
parent 1c1e5b7e36
commit 74caa8d8e4
11 changed files with 88 additions and 105 deletions

View File

@@ -27,7 +27,6 @@
#define C(color)
#endif
void NDECL(monst_init);
/*
* Entry Format: (from permonst.h)
*
@@ -101,7 +100,7 @@ void NDECL(monst_init);
*/
#ifndef SPLITMON_2
NEARDATA struct permonst mons[] = {
NEARDATA struct permonst mons_init[] = {
/*
* ants
*/
@@ -3228,10 +3227,13 @@ struct permonst _mons2[] = {
#endif /* !SPLITMON_1 */
#ifndef SPLITMON_1
/* dummy routine used to force linkage */
struct permonst mons[SIZE(mons_init)];
void
monst_init()
monst_globals_init()
{
memcpy(mons, mons_init, sizeof(mons));
return;
}