*** empty log message ***

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@473 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2006-11-05 18:35:19 +00:00
parent 1802cace77
commit 70206b3bce
22 changed files with 210 additions and 218 deletions
+3 -3
View File
@@ -190,7 +190,7 @@ void pruneundos(int maxremain) // bound memory
loopvrev(undos)
{
t += undos[i]->xs*undos[i]->ys*sizeof(sqr);
if(t>maxremain) free(undos.remove(i));
if(t>maxremain) delete undos.remove(i);
};
};
@@ -206,7 +206,7 @@ void editundo()
if(undos.empty()) { conoutf("nothing more to undo"); return; };
block *p = undos.pop();
blockpaste(*p);
free(p);
freeblock(p);
};
block *copybuf = NULL;
@@ -214,7 +214,7 @@ block *copybuf = NULL;
void copy()
{
EDITSELMP;
if(copybuf) free(copybuf);
freeblock(copybuf);
copybuf = blockcopy(sel);
};