竞速排行bug
parent
aa3c588b87
commit
fac16f9dfd
|
@ -1312,6 +1312,7 @@ public class MapLogic {
|
||||||
if (crossInfo == null) {
|
if (crossInfo == null) {
|
||||||
crossInfo = new CrossInfo();
|
crossInfo = new CrossInfo();
|
||||||
}
|
}
|
||||||
|
int beforTime = crossInfo.getLeastTime();
|
||||||
if (useTime < crossInfo.getLeastTime()) {
|
if (useTime < crossInfo.getLeastTime()) {
|
||||||
crossInfo.setLeastTime(useTime);
|
crossInfo.setLeastTime(useTime);
|
||||||
}
|
}
|
||||||
|
@ -1332,7 +1333,7 @@ public class MapLogic {
|
||||||
crossInfo.setForces(heroForces);
|
crossInfo.setForces(heroForces);
|
||||||
}
|
}
|
||||||
SChallengeMapConfig sChallengeMapConfig = SChallengeMapConfig.integerSChallengeMapConfigMap.get(mapManager.getCurMapId());
|
SChallengeMapConfig sChallengeMapConfig = SChallengeMapConfig.integerSChallengeMapConfigMap.get(mapManager.getCurMapId());
|
||||||
if (sChallengeMapConfig.getIfRank() == 1 && useTime > 0 && useTime < crossInfo.getLeastTime()) {
|
if (sChallengeMapConfig.getIfRank() == 1 && useTime > 0 && useTime < beforTime) {
|
||||||
String key = RedisKey.getKey(RedisKey.MAP_RANK, Integer.toString(mapManager.getCurMapId()), true);
|
String key = RedisKey.getKey(RedisKey.MAP_RANK, Integer.toString(mapManager.getCurMapId()), true);
|
||||||
RedisUtil.getInstence().zsetAddOne(key, mapManager.getRootId(), useTime);
|
RedisUtil.getInstence().zsetAddOne(key, mapManager.getRootId(), useTime);
|
||||||
int zsetSize = RedisUtil.getInstence().getZsetSize(key);
|
int zsetSize = RedisUtil.getInstence().getZsetSize(key);
|
||||||
|
|
Loading…
Reference in New Issue