projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed bug where player actions were only mapped in team mode
[rocksndiamonds.git]
/
src
/
tape.c
diff --git
a/src/tape.c
b/src/tape.c
index 526c6d1d2fee3b2ba393a3d3e42021af6917034b..fb36f1e28806046a69c6b1dfe1a1cfc6c9ff6bec 100644
(file)
--- a/
src/tape.c
+++ b/
src/tape.c
@@
-19,6
+19,8
@@
#include "network.h"
#include "cartoons.h"
#include "network.h"
#include "cartoons.h"
+#define DEBUG_TAPE_WHEN_PLAYING FALSE
+
/* tape button identifiers */
#define TAPE_CTRL_ID_EJECT 0
#define TAPE_CTRL_ID_EXTRA 1
/* tape button identifiers */
#define TAPE_CTRL_ID_EJECT 0
#define TAPE_CTRL_ID_EXTRA 1
@@
-733,6
+735,13
@@
byte *TapePlayAction()
for (i = 0; i < MAX_PLAYERS; i++)
action[i] = tape.pos[tape.counter].action[i];
for (i = 0; i < MAX_PLAYERS; i++)
action[i] = tape.pos[tape.counter].action[i];
+#if DEBUG_TAPE_WHEN_PLAYING
+ printf("%05d", FrameCounter);
+ for (i = 0; i < MAX_PLAYERS; i++)
+ printf(" %08x", action[i]);
+ printf("\n");
+#endif
+
tape.set_centered_player = FALSE;
tape.centered_player_nr_next = -999;
tape.set_centered_player = FALSE;
tape.centered_player_nr_next = -999;