This commit is contained in:
Pawel Kolodziejski 2004-02-25 08:51:19 +00:00
parent 2600dc2efc
commit f41465005b
2 changed files with 5 additions and 5 deletions

View File

@ -172,13 +172,13 @@ void screenBlocksDrawDebug() {
glVertex2i(i * 16, j * 16);
glVertex2i((i + 1) * 16, j * 16);
glVertex2i((i + 1) * 16, (j + 1) * 16);
glVertex2i(i * 16,(j + 1)*16);
glVertex2i(i * 16, (j + 1) * 16);
glEnd();
}
}
}
glEnable(GL_DEPTH_TEST);
glEnable(GL_TEXTURE_2D );
glEnable(GL_TEXTURE_2D);
glDisable(GL_BLEND);
}
@ -197,8 +197,8 @@ void screenBlocksBlitDirtyBlocks() {
glColorMask(GL_FALSE, GL_FALSE, GL_FALSE, GL_FALSE);
glDepthMask(GL_TRUE);
for(j = 0;j < 30;j++) {
for(i=0;i<40;i++) {
for(j = 0;j < 30; j++) {
for(i = 0; i < 40; i++) {
if (screenBlockData[i][j].isDirty) {
int width = 1;
int start = i++;

View File

@ -82,7 +82,7 @@ public:
}
float dotProduct( float sx, float sy, float sz ) {
return x()*sx + y()*sy + z()*sz;
return x() * sx + y() * sy + z()*sz;
}
bool isZero() {