From: Holger Schemel Date: Sun, 15 Oct 2017 18:51:32 +0000 (+0200) Subject: added fields 'sort_priority' and 'readonly' when saving user level sets X-Git-Tag: 4.1.0.0~100 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=81da35db369b73242e6ff3902657b3703efb4fa4;p=rocksndiamonds.git added fields 'sort_priority' and 'readonly' when saving user level sets --- diff --git a/src/libgame/setup.c b/src/libgame/setup.c index 48b48b7b..4e81beb6 100644 --- a/src/libgame/setup.c +++ b/src/libgame/setup.c @@ -3519,6 +3519,8 @@ static void SaveUserLevelInfo() setString(&level_info->author, getRealName()); level_info->levels = 100; level_info->first_level = 1; + level_info->sort_priority = LEVELCLASS_PRIVATE_START; + level_info->readonly = FALSE; token_value_position = TOKEN_VALUE_POSITION_SHORT; @@ -3530,7 +3532,9 @@ static void SaveUserLevelInfo() if (i == LEVELINFO_TOKEN_NAME || i == LEVELINFO_TOKEN_AUTHOR || i == LEVELINFO_TOKEN_LEVELS || - i == LEVELINFO_TOKEN_FIRST_LEVEL) + i == LEVELINFO_TOKEN_FIRST_LEVEL || + i == LEVELINFO_TOKEN_SORT_PRIORITY || + i == LEVELINFO_TOKEN_READONLY) fprintf(file, "%s\n", getSetupLine(levelinfo_tokens, "", i)); /* just to make things nicer :) */