*** empty log message ***
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@903 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
@@ -56,6 +56,17 @@ void toggleedit()
|
||||
|
||||
COMMANDN(edittoggle, toggleedit, ARG_NONE);
|
||||
|
||||
char *editinfo()
|
||||
{
|
||||
static string info;
|
||||
if(!editmode) return NULL;
|
||||
int e = closestent();
|
||||
if(e<0) return NULL;
|
||||
entity &c = ents[e];
|
||||
s_sprintf(info)("closest entity = %s (%d, %d, %d, %d), selection = (%d, %d)", entnames[c.type], c.attr1, c.attr2, c.attr3, c.attr4, sel.xs, sel.ys);
|
||||
return info;
|
||||
}
|
||||
|
||||
void correctsel() // ensures above invariant
|
||||
{
|
||||
selset = !OUTBORD(sel.x, sel.y);
|
||||
|
||||
Reference in New Issue
Block a user