First set of changes to move globals to instance_globals.

This commit is contained in:
Bart House
2018-12-16 19:43:02 -08:00
parent a93066ba83
commit ed9082a99a
51 changed files with 680 additions and 565 deletions
+9
View File
@@ -203,6 +203,8 @@ char *argv[];
}
#endif
objects_globals_init();
tilecount = 0;
xoffset = yoffset = 0;
initflag = 0;
@@ -360,3 +362,10 @@ pixel (*pixels)[TILE_X];
}
}
}
/* nhassert_failed is called when an nhassert's condition is false */
void nhassert_failed(const char * exp, const char * file, int line)
{
Fprintf(stderr, "NHASSERT(%s) in '%s' at line %d\n", exp, file, line);
exit(EXIT_FAILURE);
}
-1
View File
@@ -113,7 +113,6 @@ int set, entry;
we're linked properly.
*/
monst_init();
objects_init();
(void) def_char_to_objclass(']');
condnum = tilenum = 0;