do not upgrade keys for later data versions

This commit is contained in:
Enno Rehling 2017-08-16 21:48:04 +02:00
parent 7f98fd9f22
commit a8e9da1c19
1 changed files with 3 additions and 0 deletions

View File

@ -61,6 +61,9 @@ static int a_readkeys(attrib * a, void *owner, gamedata *data) {
static int a_readkey(attrib *a, void *owner, struct gamedata *data) {
int res = a_readint(a, owner, data);
if (data->version>=KEYVAL_VERSION) {
return AT_READ_FAIL;
}
return (res != AT_READ_FAIL) ? AT_READ_DEPR : res;
}