home
·
contact
·
privacy
projects
/
plomrogue
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Changed way world.map_obj_count is transmitted; also re-factoring of map_objects...
[plomrogue]
/
src
/
main.c
diff --git
a/src/main.c
b/src/main.c
index 2d096367c85192d34095cb2abd8935b98a4ca6ee..74ef761ddbb1b440cc384a880641657046628b8c 100644
(file)
--- a/
src/main.c
+++ b/
src/main.c
@@
-159,7
+159,7
@@
int main(int argc, char *argv[])
win_map->center = player->pos;
/* Initialize player's inventory selection index to start position. */
win_map->center = player->pos;
/* Initialize player's inventory selection index to start position. */
- world.inventory_sel
ect
= 0;
+ world.inventory_sel = 0;
/* Replay mode. */
int key;
/* Replay mode. */
int key;
@@
-179,7
+179,7
@@
int main(int argc, char *argv[])
if ( is_command_id_shortdsc(action, "drop")
|| is_command_id_shortdsc(action, "use"))
{
if ( is_command_id_shortdsc(action, "drop")
|| is_command_id_shortdsc(action, "use"))
{
- world.inventory_sel
ect
= try_fgetc_noeof(file, f_name);
+ world.inventory_sel = try_fgetc_noeof(file, f_name);
}
player_control_by_id(action);
}
}
player_control_by_id(action);
}
@@
-203,7
+203,7
@@
int main(int argc, char *argv[])
if ( is_command_id_shortdsc(action, "drop")
|| is_command_id_shortdsc(action, "use"))
{
if ( is_command_id_shortdsc(action, "drop")
|| is_command_id_shortdsc(action, "use"))
{
- world.inventory_sel
ect
= try_fgetc_noeof(file, f_name);
+ world.inventory_sel = try_fgetc_noeof(file, f_name);
}
player_control_by_id(action);
}
}
player_control_by_id(action);
}