projects
/
hackover2013-badge-firmware.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Gegner reagieren auf Schüsse.
[hackover2013-badge-firmware.git]
/
badge
/
jumpnrun
/
jumpnrun.h
diff --git
a/badge/jumpnrun/jumpnrun.h
b/badge/jumpnrun/jumpnrun.h
index
fc386c7
..
5fcc893
100644
(file)
--- a/
badge/jumpnrun/jumpnrun.h
+++ b/
badge/jumpnrun/jumpnrun.h
@@
-31,6
+31,7
@@
typedef struct jumpnrun_shot {
} jumpnrun_shot;
static inline bool jumpnrun_shot_spawned(jumpnrun_shot const *shot) { return fixed_point_ne(shot->inertia.x, FIXED_INT(0)); }
} jumpnrun_shot;
static inline bool jumpnrun_shot_spawned(jumpnrun_shot const *shot) { return fixed_point_ne(shot->inertia.x, FIXED_INT(0)); }
+static inline void jumpnrun_shot_despawn(jumpnrun_shot *shot) { shot->inertia.x = FIXED_INT(0); }
enum {
JUMPNRUN_MAX_SHOTS = 2
enum {
JUMPNRUN_MAX_SHOTS = 2
This page took
0.024658 seconds
and
4
git commands to generate.