Skip to content

Commit cd5fba0

Browse files
- Fixed memory leak, somehow.
- Limited the usage of the function __spse_text_converter_to_sprite_index in the watch sequence of the instance follower.
1 parent 1a16f80 commit cd5fba0

4 files changed

Lines changed: 14 additions & 6 deletions

File tree

extensions/Develpper_Console.extension.gmx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!--This Document is generated by GameMaker, if you edit it by hand then you do so at your own risk!-->
22
<extension>
33
<name>Develpper_Console</name>
4-
<version>1.0.0</version>
4+
<version>1.2.6</version>
55
<packageID></packageID>
66
<ProductID>ACBD3CFF4E539AD869A0E8E3B4B022DD</ProductID>
77
<date>14/02/20</date>
@@ -25,7 +25,7 @@
2525
<iosThirdPartyFrameworks/>
2626
<ConfigOptions>
2727
<Config name="Default">
28-
<CopyToMask>113497403818210</CopyToMask>
28+
<CopyToMask>113497401721058</CopyToMask>
2929
</Config>
3030
</ConfigOptions>
3131
<androidPermissions/>

objects/object_dummy_red.object.gmx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ Hello_11="ksokok";
3939
Hello_12="ksokok";
4040
Hello_13="ksokok";
4141
Hello_14="ksokok";
42+
a=2;
43+
b=4;
44+
c=5;
45+
zddzq=0;
4246
</string>
4347
</argument>
4448
</arguments>

objects/object_instance_follower.object.gmx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ if instance_exists(Instance_to_track){
137137
case "WATCH":
138138
var i = 0;
139139
var j;
140+
var __tmp_value;
140141
var Variables_height = array_height_2d(Variables);
141142

142143
//First step: Flush variables that don't exist anymore:
@@ -180,9 +181,12 @@ if instance_exists(Instance_to_track){
180181
i = 0;
181182
repeat(Variables_height){
182183
if Variables[i,0] != ""{
183-
if !is_array(variable_instance_get(Instance_to_track,Variables[i,0])){
184-
Variables[i,1] = variable_instance_get(Instance_to_track,Variables[i,0]);
185-
VariablesValue[i] = __spse_text_converter_to_sprite_index(string(Variables[i,1]));
184+
__tmp_value = variable_instance_get(Instance_to_track,Variables[i,0]);
185+
if !is_array(__tmp_value){
186+
if __tmp_value != Variables[i,1]{
187+
Variables[i,1] = __tmp_value;
188+
VariablesValue[i] = __spse_text_converter_to_sprite_index(string(Variables[i,1]));
189+
}
186190
}
187191
}
188192
else{

objects/object_main_console.object.gmx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ if (mouse_collision != noone){
198198
//On va traquer cette instance:
199199
var This_object = instance_create(0,0,object_instance_follower);
200200
This_object.Instance_to_track = mouse_collision; //This is the instance specific ID
201-
This_object.Instance_name = __spse_text_converter_to_sprite_index(object_get_name(mouse_collision.object_index));
201+
This_object.Instance_name = __spse_text_converter_to_sprite_index(object_get_name(mouse_collision.object_index)+"!");
202202
This_object.Instance_string_name = object_get_name(mouse_collision.object_index);
203203
break;
204204
}

0 commit comments

Comments
 (0)