home
·
contact
·
privacy
projects
/
plomrogue
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Server: Ensure THING_ACTION command fails on argument 0.
[plomrogue]
/
src
/
common
/
map.h
diff --git
a/src/common/map.h
b/src/common/map.h
index cac29dc8f111686be4eb3e4ed699c8c2e7422eb0..35bcf2512edc1353d2e63ab12fb5afa95caa13d2 100644
(file)
--- a/
src/common/map.h
+++ b/
src/common/map.h
@@
-1,19
+1,19
@@
/* src/common/map.h
*
/* src/common/map.h
*
- *
Struct for the g
ame map.
+ *
G
ame map.
*/
#ifndef MAP_H
#define MAP_H
*/
#ifndef MAP_H
#define MAP_H
-#include
"yx_uint16.h" /* yx_uint16 struc
t */
+#include
<stdint.h> /* uint16_
t */
struct Map
{
struct Map
{
- struct yx_uint16 size; /* map's height/width in number of cells */
char * cells; /* sequence of bytes encoding map cells */
char * cells; /* sequence of bytes encoding map cells */
+ uint16_t length; /* map's edge length, i.e. both height and width */
};
};