projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
prepared code to support more tape actions than players
[rocksndiamonds.git]
/
src
/
tape.h
diff --git
a/src/tape.h
b/src/tape.h
index 40ddd0949e39dbd36f8ef830c834802b998983e1..c20fab418805ac8bdf5251b18f230640b05f39fc 100644
(file)
--- a/
src/tape.h
+++ b/
src/tape.h
@@
-27,6
+27,8
@@
#define TAPE_ACTION_BUTTON 2
#define TAPE_ACTION_UNUSED 3
#define TAPE_ACTION_BUTTON 2
#define TAPE_ACTION_UNUSED 3
+#define MAX_TAPE_ACTIONS 4
+
// some positions in the video tape control window
#define VIDEO_DISPLAY1_XPOS 5
#define VIDEO_DISPLAY1_YPOS 5
// some positions in the video tape control window
#define VIDEO_DISPLAY1_XPOS 5
#define VIDEO_DISPLAY1_YPOS 5
@@
-194,7
+196,7
@@
struct TapeInfo
struct
{
struct
{
- byte action[MAX_
PLAYER
S];
+ byte action[MAX_
TAPE_ACTION
S];
byte delay;
} pos[MAX_TAPE_LEN];
byte delay;
} pos[MAX_TAPE_LEN];