+2014-09-19
+ * fixed bug where player actions were only mapped in team mode
+ (this broke four tapes in automatic game engine unit test where
+ old levels contained a non-yellow player, like rnd_abby_king, 011)
+
2014-09-15
* removed large parts of the preprocessor hell of old and unused code
TapeRecordAction(tape_action);
#if USE_NEW_PLAYER_ASSIGNMENTS
- if (game.team_mode)
+ // !!! also map player actions in single player mode !!!
+ // if (game.team_mode)
{
byte mapped_action[MAX_PLAYERS];
#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
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;