cubescript commands (addselection/resetselections) + win32 binaries

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6661 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lucas GAUTHERON
2011-09-30 18:54:18 +00:00
parent 89f42b882d
commit 4c3fdd16ef
+3 -8
View File
@@ -120,13 +120,6 @@ void checkselections()
loopv(sels) if(!correctsel(sels[i])) sels.remove(i);
}
// selection from cubescript
void selectpos(int x, int y, int xs, int ys)
{
resetselections();
addselection(x, y, xs, ys, 0);
}
// update current selection, or add a new one
void makesel(bool isnew)
{
@@ -710,7 +703,9 @@ void selectionflip(char *axis)
loopv(sels) selfliprotate(sels[i], c == 'X' ? 11 : 12);
}
COMMANDN(select, selectpos, ARG_4INT);
COMMANDF(select, ARG_4INT, (int x, int y, int xs, int ys) { resetselections(); addselection(x, y, xs, ys, 0); });
COMMANDF(addselection, ARG_4INT, (int x, int y, int xs, int ys) { addselection(x, y, xs, ys, 0); });
COMMAND(resetselections, ARG_NONE);
COMMAND(edittag, ARG_1INT);
COMMAND(replace, ARG_NONE);
COMMAND(archvertex, ARG_3INT);