开地图 GM
parent
a1cf44bbca
commit
e7a7c2b686
|
|
@ -49,7 +49,7 @@ public class GMRequestHandler extends BaseHandler{
|
||||||
int prarm1 = 0, prarm2 = 0;
|
int prarm1 = 0, prarm2 = 0;
|
||||||
if (gmCommandType == 0){
|
if (gmCommandType == 0){
|
||||||
prarm1 = Integer.parseInt(commandArray[1]);
|
prarm1 = Integer.parseInt(commandArray[1]);
|
||||||
}else if (gmCommandType == 1 || gmCommandType ==2 || gmCommandType ==3 || gmCommandType ==4){
|
}else {
|
||||||
prarm1 = Integer.parseInt(commandArray[1]);
|
prarm1 = Integer.parseInt(commandArray[1]);
|
||||||
prarm2 = Integer.parseInt(commandArray[2]);
|
prarm2 = Integer.parseInt(commandArray[2]);
|
||||||
}
|
}
|
||||||
|
|
@ -89,7 +89,7 @@ public class GMRequestHandler extends BaseHandler{
|
||||||
int mapId = 100 + prarm1;
|
int mapId = 100 + prarm1;
|
||||||
SCMapConfig crossMap = SCMapConfig.getsCMapSize().get(mapId);
|
SCMapConfig crossMap = SCMapConfig.getsCMapSize().get(mapId);
|
||||||
cUser.getPlayerInfoManager().setMapId(mapId);
|
cUser.getPlayerInfoManager().setMapId(mapId);
|
||||||
if (crossMap.getOpenRule() != null) {
|
if (crossMap.getOpenRule() != null && crossMap.getOpenRule().length > 0) {
|
||||||
cUser.getMissionManager().getFinishMissions().add(crossMap.getOpenRule()[0]);
|
cUser.getMissionManager().getFinishMissions().add(crossMap.getOpenRule()[0]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue