reorganized sqr storage for better cache usage

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@4113 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2009-01-04 18:42:09 +00:00
parent 2f27cba52c
commit 4d6ffecf29
8 changed files with 51 additions and 50 deletions
+1 -1
View File
@@ -176,7 +176,7 @@ bool collide(physent *d, bool spawn, float drop, float rise)
const float eyeheight = d->eyeheight;
const float playerheight = eyeheight + d->aboveeye;
for(int x = x1; x<=x2; x++) for(int y = y1; y<=y2; y++) // collide with map
for(int y = y1; y<=y2; y++) for(int x = x1; x<=x2; x++) // collide with map
{
if(OUTBORD(x,y)) return false;
sqr *s = S(x,y);