home
·
contact
·
privacy
projects
/
plomrogue
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Eliminated some potential problems for alternative game map sizes.
[plomrogue]
/
src
/
client
/
misc.h
diff --git
a/src/client/misc.h
b/src/client/misc.h
index 5fb3e71e3e45aebd4bfb54fbd999cf79fc097978..5a745866c7ef8f2c4144feb76dbb0bdf16842013 100644
(file)
--- a/
src/client/misc.h
+++ b/
src/client/misc.h
@@
-7,6
+7,9
@@
#ifndef MISC_H
#define MISC_H
#ifndef MISC_H
#define MISC_H
+#include <stddef.h> /* size_t */
+#include <stdint.h> /* uint32_t */
+
/* Parses command line argument -i into client configuration. */
/* Parses command line argument -i into client configuration. */
@@
-16,7
+19,8
@@
extern void obey_argv(int argc, char * argv[]);
* data, world.wins.pad (initialized before opening any windows to the height of
* the terminal screen and a width of 1) and window chains.
*
* data, world.wins.pad (initialized before opening any windows to the height of
* the terminal screen and a width of 1) and window chains.
*
- * Note that reload_interface_conf() also calls map_center().
+ * Note that reload_interface_conf() also calls map_center() and re-sets
+ * world.winDB.v_screen_offset to zero.
*/
extern void save_interface_conf();
extern void load_interface_conf();
*/
extern void save_interface_conf();
extern void load_interface_conf();
@@
-26,6
+30,12
@@
extern void reload_interface_conf();
/* Move world.inventory_sel up ("dir"="u") or down (else) as far as possible. */
extern void nav_inventory(char dir);
/* Move world.inventory_sel up ("dir"="u") or down (else) as far as possible. */
extern void nav_inventory(char dir);
+/* Append to array pointed to by "ptr_old_array" of "old_n" elements of
+ * "region_size" "new region".
+ */
+extern void array_append(uint32_t old_n, size_t region_size, void * new_region,
+ void ** ptr_old_array);
+
#endif
#endif