Log reset save fix

cleaner
milesthenerd 5 years ago
parent 7bd2a693eb
commit cf4e8d0629

@ -395,6 +395,9 @@ global.canConnect = true;
reset_map();
load_character_vars();
multitroidPalette = -1;
if (file_exists("mods/palettes/sPalMultitroid.png")) multitroidPalette = sprite_add("mods/palettes/sPalMultitroid.png", 1, false, false, 0, 0);
</string>
</argument>
</arguments>

@ -66,7 +66,7 @@ mus_change(musCaveAmbience);</code>
<instance objName="oGotoRoom" x="320" y="160" name="inst_107508" locked="0" code="&#xA;targetroom = rm_a1h03;&#xA;targetx = 16;&#xA;targety = 640;&#xA;height = 80;&#xA;direction = 0;&#xA;camstartx = 16;&#xA;camstarty = 600;&#xA;transitionx = 4;&#xA;transitiony = 160;&#xA;" scaleX="1" scaleY="1" colour="4294967295" rotation="0"/>
<instance objName="oSolid1" x="0" y="0" name="inst_107509" locked="0" code="" scaleX="8" scaleY="4" colour="4294967295" rotation="0"/>
<instance objName="oSolid1" x="192" y="0" name="inst_107510" locked="0" code="" scaleX="8" scaleY="4" colour="4294967295" rotation="0"/>
<instance objName="oSolid1" x="128" y="48" name="inst_107511" locked="0" code="if(global.event[51] == 1){&#xA; instance_destroy();&#xA;}&#xA;" scaleX="4" scaleY="1" colour="4294967295" rotation="0"/>
<instance objName="oSolid1" x="128" y="48" name="inst_107511" locked="0" code="" scaleX="4" scaleY="1" colour="4294967295" rotation="0"/>
<instance objName="oSolid1" x="0" y="160" name="inst_107512" locked="0" code="" scaleX="20" scaleY="1" colour="4294967295" rotation="0"/>
<instance objName="oSolid1" x="0" y="64" name="inst_107513" locked="0" code="" scaleX="2" scaleY="1" colour="4294967295" rotation="0"/>
<instance objName="oSolid1" x="288" y="64" name="inst_107514" locked="0" code="" scaleX="2" scaleY="1" colour="4294967295" rotation="0"/>

@ -3,9 +3,22 @@ list = ds_list_create();
ds_list_read(list, base64_decode(file_text_read_string(argument0)));
i = 0;
j = 0;
repeat (50) {
global.log[j] = readline();
global.newlog[j] = readline();
j += 1;
if(!instance_exists(oClient)){
repeat (50) {
global.log[j] = readline();
global.newlog[j] = readline();
j += 1;
}
} else if(instance_exists(oClient) && global.lastroom == gameoverroom){
//don't reset values
} else if(instance_exists(oClient) && global.lastroom != gameoverroom && string_count("rm_a", room_get_name(global.lastroom)) == 0){
repeat (50) {
global.log[j] = readline();
global.newlog[j] = readline();
j += 1;
}
} else if(instance_exists(oClient) && global.lastroom != gameoverroom && string_count("rm_a", room_get_name(global.lastroom)) > 0){
//don't reset values
}
ds_list_clear(list);

Loading…
Cancel
Save