From: Holger Schemel Date: Tue, 1 Sep 2020 18:34:54 +0000 (+0200) Subject: changed number of eater arrays from 8 to 4 for pre-V6 EM engine levels X-Git-Tag: 4.2.0.2~19 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=e53d58510f885c94012219b3f913b928fa8ab1cc;p=rocksndiamonds.git changed number of eater arrays from 8 to 4 for pre-V6 EM engine levels This prevents duplication of eater arrays for native EM engine levels prior to version V6 (which had only four eater arrays). This is more or less a cosmetical change only for the level editor when looking at the eater arrays. There is no difference when playing such levels. --- diff --git a/src/game_em/reademc.c b/src/game_em/reademc.c index f9331030..e26289a3 100644 --- a/src/game_em/reademc.c +++ b/src/game_em/reademc.c @@ -393,6 +393,9 @@ void convert_em_level(unsigned char *src, int file_version) for (x = 0; x < 9; x++) cav.eater_array[i][x] = map_emc[src[eater_offset[i] + x]]; + if (file_version < FILE_VERSION_EM_V6) + cav.num_eater_arrays = 4; + /* ball */ temp = map_emc[src[2159]];