forked from github/server
do not upgrade keys for later data versions
This commit is contained in:
parent
7f98fd9f22
commit
a8e9da1c19
|
@ -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) {
|
static int a_readkey(attrib *a, void *owner, struct gamedata *data) {
|
||||||
int res = a_readint(a, owner, 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;
|
return (res != AT_READ_FAIL) ? AT_READ_DEPR : res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue