*** 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:
Lee Salzman
2007-04-03 18:56:40 +00:00
parent a735498b8e
commit fae7543e2a
14 changed files with 563 additions and 560 deletions
+11
View File
@@ -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);