c_input(); if select && selectedunit == noone { var mousex = floor(mouse_x/global.tilesize.x); var mousey = floor(mouse_y/global.tilesize.y); log(mousex, mousey); if mousex < array_length(global.map) { if mousey < array_length(global.map[mousex]) { var i; for (i=0; i