开地图 GM

back_recharge
jiahuiwen 2019-03-29 15:37:08 +08:00
parent a1cf44bbca
commit e7a7c2b686
1 changed files with 2 additions and 2 deletions

View File

@ -49,7 +49,7 @@ public class GMRequestHandler extends BaseHandler{
int prarm1 = 0, prarm2 = 0;
if (gmCommandType == 0){
prarm1 = Integer.parseInt(commandArray[1]);
}else if (gmCommandType == 1 || gmCommandType ==2 || gmCommandType ==3 || gmCommandType ==4){
}else {
prarm1 = Integer.parseInt(commandArray[1]);
prarm2 = Integer.parseInt(commandArray[2]);
}
@ -89,7 +89,7 @@ public class GMRequestHandler extends BaseHandler{
int mapId = 100 + prarm1;
SCMapConfig crossMap = SCMapConfig.getsCMapSize().get(mapId);
cUser.getPlayerInfoManager().setMapId(mapId);
if (crossMap.getOpenRule() != null) {
if (crossMap.getOpenRule() != null && crossMap.getOpenRule().length > 0) {
cUser.getMissionManager().getFinishMissions().add(crossMap.getOpenRule()[0]);
}
}