home
·
contact
·
privacy
projects
/
plomrogue
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Individual map objects are now identified by unique numbers stored in the savefiles...
[plomrogue]
/
src
/
main.c
diff --git
a/src/main.c
b/src/main.c
index 046ef1ad952f3cec1a8a2786a6117ee87cf44ce5..2c096aef69d6f3450d0b5fa718ee67f661d0cd0d 100644
(file)
--- a/
src/main.c
+++ b/
src/main.c
@@
-94,6
+94,7
@@
int main(int argc, char *argv[])
world.item = 0;
init_map_object_defs(&world, "config/defs");
set_cleanup_flag(CLEANUP_MAP_OBJECT_DEFS);
world.item = 0;
init_map_object_defs(&world, "config/defs");
set_cleanup_flag(CLEANUP_MAP_OBJECT_DEFS);
+ world.map_object_count = 1;
/* For interactive mode, try to load world state from savefile. */
char * err_r = "Trouble loading game (in main()) / "
/* For interactive mode, try to load world state from savefile. */
char * err_r = "Trouble loading game (in main()) / "
@@
-187,6
+188,10
@@
int main(int argc, char *argv[])
sorted_wintoggle_and_activate(&world);
err_winmem = "Trouble with draw_all_wins() in main().";
sorted_wintoggle_and_activate(&world);
err_winmem = "Trouble with draw_all_wins() in main().";
+ /* Focus map on player. */
+ struct Win * win_map = get_win_by_id(&world, 'm');
+ map_center_player(&map, &player, win_map->frame.size);
+
/* Replay mode. */
int key;
struct WinConf * wc;
/* Replay mode. */
int key;
struct WinConf * wc;