Initialize regPosX and regPosZ to zero when not specified on the command line.

Fixes issue #5.
This commit is contained in:
Tom Schumm 2018-06-30 16:24:13 -07:00
parent bcb58c935f
commit 48d65c0a77

View File

@ -20,8 +20,8 @@ int main(int argc, char *argv[])
initBiomes();
// Translate the positions to the desired regions.
int regPosX;
int regPosZ;
int regPosX = 0;
int regPosZ = 0;
if(argc > 2)
{
@ -90,7 +90,7 @@ int main(int argc, char *argv[])
printf("(%d,%d) ", qhpos[j].x, qhpos[j].z);
}
printf("\n");
//*/
*/
// This little magic code checks if there is a meaningful chance for
// this seed base to generate swamps in the area.