Fixed no ammo missile crash and possibly fixed death loop

pull/28/head
milesthenerd 5 years ago
parent 3f09beb311
commit 96ad454ed0

@ -58,7 +58,7 @@ if (global.currentweapon == 2 && global.smissiles == 0) global.currentweapon = 1
if (global.currentweapon == 1 && global.missiles == 0) global.currentweapon = 0;
if(instance_exists(oClient) && missileX != 0 && missileY != 0){
if(ds_list_size(oClient.roomListData) >= 0){
if(ds_list_size(oClient.roomListData) > 0){
var size, type, alignment;
size = 1024;
type = buffer_grow;

@ -90,3 +90,5 @@ if (header != "[AM2R SaveData V7.0]") {
} // if (header != "[AM2R SaveData V7.0]") else
if(instance_exists(oClient)) refill_heath_ammo();

@ -568,7 +568,7 @@ switch(argument0){
if(instance_exists(oCharacter)){
if(oCharacter.state != oCharacter.SAVINGFX && oCharacter.state != oCharacter.SAVINGSHIPFX && oCharacter.state != oCharacter.SAVINGSHIP && oCharacter.state != oCharacter.SAVING){
global.onlineList[# 1, i] = global.onlineReceived[# 1, i];
} else if(oCharacter.state == oCharacter.SAVINGFX || oCharacter.state == oCharacter.SAVINGSHIPFX || oCharacter.state == oCharacter.SAVINGSHIP || oCharacter.state == oCharacter.SAVING){
} else if(oCharacter.state == oCharacter.SAVINGFX || oCharacter.state == oCharacter.SAVINGSHIPFX || oCharacter.state == oCharacter.SAVINGSHIP || oCharacter.state == oCharacter.SAVING || (oCharacter.state == oCharacter.IDLE && oCharacter.juststarted > 0)){
if(global.playerhealth != global.maxhealth){
refill_heath_ammo();
}

Loading…
Cancel
Save