@@ -9,7 +9,11 @@ function __v_draw_text() {
9
9
var position = argument[0 ];
10
10
var text = argument[1 ];
11
11
}
12
- __draw_text (position.x , position.y , text);
12
+
13
+ var px = position.x ;
14
+ var py = position.y ;
15
+ delete position;
16
+ __draw_text (px, py, text);
13
17
}
14
18
15
19
// / @function draw_text_color((x, y) or vector2, string, c1, c2, c3, c4, alpha)
@@ -26,7 +30,11 @@ function __v_draw_text_color() {
26
30
var c3 = argument[arg_offset + 3 ];
27
31
var c4 = argument[arg_offset + 4 ];
28
32
var al = argument[arg_offset + 5 ];
29
- __draw_text_color (vector.x , vector.y , st, c1, c2, c3, c4, al);
33
+
34
+ var px = vector.x ;
35
+ var py = vector.y ;
36
+ delete vector;
37
+ __draw_text_color (px, py, st, c1, c2, c3, c4, al);
30
38
}
31
39
32
40
// / @function draw_text_ext((x, y) or vector2, string, sep, w)
@@ -40,7 +48,11 @@ function __v_draw_text_ext() {
40
48
var st = argument[arg_offset];
41
49
var sp = argument[arg_offset + 1 ];
42
50
var wd = argument[arg_offset + 2 ];
43
- __draw_text_ext (vector.x , vector.y , st, sp, wd);
51
+
52
+ var px = vector.x ;
53
+ var py = vector.y ;
54
+ delete vector;
55
+ __draw_text_ext (px, py, st, sp, wd);
44
56
}
45
57
46
58
// / @function draw_text_ext_color((x, y) or vector2, string, sep, w, c1, c2, c3, c4, alpha)
@@ -59,7 +71,11 @@ function __v_draw_text_ext_color() {
59
71
var c3 = argument[arg_offset + 5 ];
60
72
var c4 = argument[arg_offset + 6 ];
61
73
var al = argument[arg_offset + 7 ];
62
- __draw_text_ext_color (vector.x , vector.y , st, sp, wd, c1, c2, c3, c4, al);
74
+
75
+ var px = vector.x ;
76
+ var py = vector.y ;
77
+ delete vector;
78
+ __draw_text_ext_color (px, py, st, sp, wd, c1, c2, c3, c4, al);
63
79
}
64
80
65
81
// / @function draw_text_ext_transformed((x, y) or vector2, string, sep, w, xscale, yscale, angle)
@@ -76,7 +92,11 @@ function __v_draw_text_ext_transformed() {
76
92
var xs = argument[arg_offset + 3 ];
77
93
var ys = argument[arg_offset + 4 ];
78
94
var an = argument[arg_offset + 5 ];
79
- __draw_text_ext_transformed (vector.x , vector.y , st, sp, wd, xs, ys, an);
95
+
96
+ var px = vector.x ;
97
+ var py = vector.y ;
98
+ delete vector;
99
+ __draw_text_ext_transformed (px, py, st, sp, wd, xs, ys, an);
80
100
}
81
101
82
102
// / @function draw_text_ext_transformed_color((x, y) or vector2, string, sep, w, xscale, yscale, angle, c1, c2, c3, c4, alpha)
@@ -98,7 +118,11 @@ function __v_draw_text_ext_transformed_color() {
98
118
var c3 = argument[arg_offset + 8 ];
99
119
var c4 = argument[arg_offset + 9 ];
100
120
var al = argument[arg_offset + 10 ];
101
- __draw_text_ext_transformed_color (vector.x , vector.y , st, sp, wd, xs, ys, an, c1, c2, c3, c4, al);
121
+
122
+ var px = vector.x ;
123
+ var py = vector.y ;
124
+ delete vector;
125
+ __draw_text_ext_transformed_color (px, py, st, sp, wd, xs, ys, an, c1, c2, c3, c4, al);
102
126
}
103
127
104
128
// / @function raw_text_transformed((x, y) or vector2, string, xscale, yscale, angle)
@@ -113,7 +137,11 @@ function __v_draw_text_transformed() {
113
137
var xs = argument[arg_offset + 1 ];
114
138
var ys = argument[arg_offset + 2 ];
115
139
var an = argument[arg_offset + 3 ];
116
- __draw_text_transformed (vector.x , vector.y , st, xs, ys, an);
140
+
141
+ var px = vector.x ;
142
+ var py = vector.y ;
143
+ delete vector;
144
+ __draw_text_transformed (px, py, st, xs, ys, an);
117
145
}
118
146
119
147
// / @function draw_text_transformed_color((x, y) or vector2, string, xscale, yscale, angle, c1, c2, c3, c4, alpha)
@@ -133,16 +161,19 @@ function __v_draw_text_transformed_color() {
133
161
var c3 = argument[arg_offset + 7 ];
134
162
var c4 = argument[arg_offset + 8 ];
135
163
var al = argument[arg_offset + 9 ];
136
- __draw_text_transformed_color (vector.x , vector.y , st, xs, ys, an, c1, c2, c3, c4, al);
164
+
165
+ var px = vector.x ;
166
+ var py = vector.y ;
167
+ delete vector;
168
+ __draw_text_transformed_color (px, py, st, xs, ys, an, c1, c2, c3, c4, al);
137
169
}
138
170
#endregion
139
171
#region Place
140
172
// / @function place_empty((x, y) or vector2, [object_id])
141
173
function __v_place_empty () {
142
174
var obj_id = id;
143
- var position;
175
+ var position = argument[ 0 ] ;
144
176
if (is_vector2 (argument[0 ])) {
145
- position = argument[0 ];
146
177
if (argument_count > 1 ) {
147
178
obj_id = argument[1 ];
148
179
}
@@ -152,7 +183,11 @@ function __v_place_empty() {
152
183
obj_id = argument[3 ];
153
184
}
154
185
}
155
- return __place_empty (position.x , position.y , obj_id);
186
+
187
+ var px = position.x ;
188
+ var py = position.y ;
189
+ delete position;
190
+ return __place_empty (px, py, obj_id);
156
191
}
157
192
158
193
// / @function place_free((x, y) or vector2)
@@ -161,7 +196,11 @@ function __v_place_free() {
161
196
if (argument_count > 1 ) {
162
197
position = Vector2 (argument[0 ], argument[1 ]);
163
198
}
164
- return __place_free (position);
199
+
200
+ var px = position.x ;
201
+ var py = position.y ;
202
+ delete position;
203
+ return __place_free (px, py);
165
204
}
166
205
#endregion
167
206
#endregion
0 commit comments