@@ -8,21 +8,18 @@ if (draw_size > 0){
88 centerline_offset=x-obj_centerline.x ;
99 }
1010
11- var _draw_coords = {
12- x1: pos + (centerline_offset * 2 ),
13- y1: 450 - (draw_size / 2 ),
14- x2: pos + (centerline_offset * 2 ) + 10 ,
15- y2: 450 + (draw_size / 2 )
16- };
11+ x1 = pos + (centerline_offset * 2 );
12+ y1 = 450 - (draw_size / 2 );
13+ x2 = pos + (centerline_offset * 2 ) + 10 ;
14+ y2 = 450 + (draw_size / 2 );
1715
18- var _hit = scr_hit (_draw_coords.x1 , _draw_coords.y1 , _draw_coords.x2 , _draw_coords.y2 ) && obj_ncombat.fadein <= 0 ;
19-
20- if (_hit) {
16+ if (hit ()) {
2117 draw_set_alpha (0.8 );
2218 }
23- draw_rectangle (_draw_coords.x1 , _draw_coords.y1 , _draw_coords.x2 , _draw_coords.y2 , 0 );
2419
25- if (_hit) {
20+ draw_rectangle (x1, y1, x2, y2, 0 );
21+
22+ if (hit ()) {
2623 if (unit_count != unit_count_old) {
2724 unit_count_old = unit_count;
2825 if (obj_ncombat.enemy !=1 ){
@@ -74,7 +71,7 @@ if (draw_size > 0){
7471 }
7572 }
7673
77- draw_block_composition (_draw_coords. x1 , composition_string);
74+ draw_block_composition (x1, composition_string);
7875 }
7976
8077 draw_block_fadein ();
0 commit comments