It always struck me as odd that x_maze_max and y_maze_max were initialized in main(). They're only needed when making new levels, so don't have to come before saved game restoration. They could easily have gone into init_dungeon() (although they make well predate that), or even mklev() (reinitializing them for each new level wouldn't have been a big deal). That's all moot, though, since it's trivial to initialize them at compile time.
6.9 KiB
6.9 KiB