修复跳关卡时玩家数被置为1的bug

This commit is contained in:
Linex CD 2016-11-29 23:45:35 +08:00
parent 68f35f7495
commit c2e96898a0

View File

@ -333,7 +333,11 @@ function nextLevel(){
if(level == 22){
level = 1;
}
//保存玩家数
var old_player_num = menu.playNum;
initObject();
menu.playNum = old_player_num;
//只有一个玩家
if(menu.playNum == 1){
player2.lives = 0;
@ -347,7 +351,11 @@ function preLevel(){
if(level == 0){
level = 21;
}
//保存玩家数
var old_player_num = menu.playNum;
initObject();
menu.playNum = old_player_num;
//只有一个玩家
if(menu.playNum == 1){
player2.lives = 0;