From 4c3fdd16ef76f78fa82359d45e05945e3681b0f4 Mon Sep 17 00:00:00 2001 From: Lucas GAUTHERON Date: Fri, 30 Sep 2011 18:54:18 +0000 Subject: [PATCH] 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 --- source/src/editing.cpp | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/source/src/editing.cpp b/source/src/editing.cpp index f17d5df3..8d031150 100644 --- a/source/src/editing.cpp +++ b/source/src/editing.cpp @@ -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);