X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FGameDraw.cpp;h=d14a07744e3760f888b11d9e4d3d0a710ccb463d;hb=51a0860281c8978f5404c730eb809fb455d99aea;hp=5b3edfa18ffe6e9e3e00df3f9edd6e2bb125d916;hpb=30f342b219632ea3e777388a9530340baf4d7aac;p=lugaru.git diff --git a/Source/GameDraw.cpp b/Source/GameDraw.cpp index 5b3edfa..d14a077 100644 --- a/Source/GameDraw.cpp +++ b/Source/GameDraw.cpp @@ -1074,7 +1074,7 @@ int Game::DrawGLScene(StereoSide side) glPopMatrix(); glRotatef(Person::players[0]->lookyaw * -1 + 180, 0, 0, 1); glTranslatef(-(center.x / terrain.scale / 256 * -2 + 1), (center.z / terrain.scale / 256 * -2 + 1), 0); - for (int i = 0; i < Object::objects.size(); i++) { + for (unsigned int i = 0; i < Object::objects.size(); i++) { if (Object::objects[i]->type == treetrunktype) { distcheck = distsq(&Person::players[0]->coords, &Object::objects[i]->position); if (distcheck < mapviewdist) {