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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user