First set of changes to move globals to instance_globals.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -113,7 +113,6 @@ int set, entry;
|
||||
we're linked properly.
|
||||
*/
|
||||
monst_init();
|
||||
objects_init();
|
||||
(void) def_char_to_objclass(']');
|
||||
|
||||
condnum = tilenum = 0;
|
||||
|
||||
Reference in New Issue
Block a user