From: Holger Schemel Date: Sat, 7 Aug 2021 19:12:59 +0000 (+0200) Subject: fixed reading boolean values from files that are neither 0 nor 1 X-Git-Tag: 4.3.0.0~100 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=51bca66d886da1bd180844a22a755dc488701504;p=rocksndiamonds.git fixed reading boolean values from files that are neither 0 nor 1 --- diff --git a/src/files.c b/src/files.c index f838f666..e9cd8113 100644 --- a/src/files.c +++ b/src/files.c @@ -3160,7 +3160,7 @@ static int LoadLevel_MicroChunk(File *file, struct LevelFileConfigInfo *conf, value = getMappedElement(value); if (data_type == TYPE_BOOLEAN) - *(boolean *)(conf[i].value) = value; + *(boolean *)(conf[i].value) = (value ? TRUE : FALSE); else *(int *) (conf[i].value) = value;