v0.2.3d: corrected bug where updated rankings from old saves would sometimes record depth as '30015'

This commit is contained in:
Evan Debenham 2015-01-13 08:58:23 -05:00
parent 2889c1fc24
commit 15802423a8

View File

@ -207,6 +207,9 @@ public enum Rankings {
depth = bundle.getInt( DEPTH );
herolevel = bundle.getInt( LEVEL );
}
//to handle cases with pre-0.2.3d saves, where an updated ranking where the player died to dm-300 would cause a recorded depth of 30015.
if (depth == 30015) depth = 15;
}
@Override