multiple selections support in editmode

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6647 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lucas GAUTHERON
2011-09-14 14:59:40 +00:00
parent 5eb99a8bd4
commit 8f90268d82
7 changed files with 236 additions and 129 deletions
+3 -1
View File
@@ -442,6 +442,8 @@ bool empty_world(int factor, bool force) // main empty world creation routine
sqrdefault(S(x,y));
}
checkselections(); // assert no selection became invalid
strncpy(hdr.head, "ACMP", 4);
hdr.version = MAPVERSION;
hdr.headersize = sizeof(header);
@@ -471,7 +473,7 @@ bool empty_world(int factor, bool force) // main empty world creation routine
loopi(sizeof(hdr.reserved)/sizeof(hdr.reserved[0])) hdr.reserved[i] = 0;
loopk(3) loopi(256) hdr.texlists[k][i] = i;
ents.shrink(0);
block b = { 8, 8, ssize-16, ssize-16 };
block b = { 8, 8, ssize-16, ssize - 16};
edittypexy(SPACE, b);
}