projects
/
hackover2013-badge-firmware.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Level eingeordnet.
[hackover2013-badge-firmware.git]
/
badge
/
jumpnrun
/
tiles.h
diff --git
a/badge/jumpnrun/tiles.h
b/badge/jumpnrun/tiles.h
index
3ce7869
..
8e47800
100644
(file)
--- a/
badge/jumpnrun/tiles.h
+++ b/
badge/jumpnrun/tiles.h
@@
-22,7
+22,7
@@
enum {
typedef struct jumpnrun_tile_position {
int16_t x;
int8_t y;
typedef struct jumpnrun_tile_position {
int16_t x;
int8_t y;
-} jumpnrun_tile_position;
+}
__attribute__((packed))
jumpnrun_tile_position;
typedef struct jumpnrun_tile_type {
uint8_t lethal_sides;
typedef struct jumpnrun_tile_type {
uint8_t lethal_sides;
@@
-32,11
+32,11
@@
typedef struct jumpnrun_tile_type {
typedef struct jumpnrun_tile {
jumpnrun_tile_position pos;
uint8_t type;
typedef struct jumpnrun_tile {
jumpnrun_tile_position pos;
uint8_t type;
-} jumpnrun_tile;
+}
__attribute__((packed))
jumpnrun_tile;
typedef struct jumpnrun_tile_range {
typedef struct jumpnrun_tile_range {
-
size
_t first;
-
size
_t last; // actually one past last.
+
uint16
_t first;
+
uint16
_t last; // actually one past last.
} jumpnrun_tile_range;
static inline fixed_point tile_left (jumpnrun_tile const *tile) { return FIXED_INT(tile->pos.x * JUMPNRUN_TILE_PIXEL_WIDTH ); }
} jumpnrun_tile_range;
static inline fixed_point tile_left (jumpnrun_tile const *tile) { return FIXED_INT(tile->pos.x * JUMPNRUN_TILE_PIXEL_WIDTH ); }
This page took
0.019572 seconds
and
4
git commands to generate.