projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
216bac7
)
changed variable for counting number of tape players
author
Holger Schemel
<info@artsoft.org>
Tue, 21 Apr 2020 18:05:33 +0000
(20:05 +0200)
committer
Holger Schemel
<info@artsoft.org>
Tue, 19 May 2020 16:21:19 +0000
(18:21 +0200)
src/files.c
patch
|
blob
|
history
diff --git
a/src/files.c
b/src/files.c
index 981411f0a9a171d1cd266232412766f2c1a4e299..2f249ada3eba63aeb204a04cd1def50325c8295f 100644
(file)
--- a/
src/files.c
+++ b/
src/files.c
@@
-8105,7
+8105,6
@@
void SaveTape(int nr)
{
char *filename = getTapeFilename(nr);
FILE *file;
{
char *filename = getTapeFilename(nr);
FILE *file;
- int num_participating_players = 0;
int tape_pos_size;
int info_chunk_size;
int body_chunk_size;
int tape_pos_size;
int info_chunk_size;
int body_chunk_size;
@@
-8122,12
+8121,14
@@
void SaveTape(int nr)
tape.file_version = FILE_VERSION_ACTUAL;
tape.game_version = GAME_VERSION_ACTUAL;
tape.file_version = FILE_VERSION_ACTUAL;
tape.game_version = GAME_VERSION_ACTUAL;
+ tape.num_participating_players = 0;
+
// count number of participating players
for (i = 0; i < MAX_PLAYERS; i++)
if (tape.player_participates[i])
// count number of participating players
for (i = 0; i < MAX_PLAYERS; i++)
if (tape.player_participates[i])
- num_participating_players++;
+
tape.
num_participating_players++;
- tape_pos_size = (tape.use_mouse ? 3 : num_participating_players) + 1;
+ tape_pos_size = (tape.use_mouse ? 3 :
tape.
num_participating_players) + 1;
info_chunk_size = 2 + (strlen(tape.level_identifier) + 1) + 2;
body_chunk_size = tape_pos_size * tape.length;
info_chunk_size = 2 + (strlen(tape.level_identifier) + 1) + 2;
body_chunk_size = tape_pos_size * tape.length;