mirror of
https://github.com/Cubitect/cubiomes.git
synced 2025-09-23 19:55:34 -04:00
Initialize regPosX and regPosZ to zero when not specified on the command line.
Fixes issue #5.
This commit is contained in:
parent
bcb58c935f
commit
48d65c0a77
@ -20,8 +20,8 @@ int main(int argc, char *argv[])
|
|||||||
initBiomes();
|
initBiomes();
|
||||||
|
|
||||||
// Translate the positions to the desired regions.
|
// Translate the positions to the desired regions.
|
||||||
int regPosX;
|
int regPosX = 0;
|
||||||
int regPosZ;
|
int regPosZ = 0;
|
||||||
|
|
||||||
if(argc > 2)
|
if(argc > 2)
|
||||||
{
|
{
|
||||||
@ -90,7 +90,7 @@ int main(int argc, char *argv[])
|
|||||||
printf("(%d,%d) ", qhpos[j].x, qhpos[j].z);
|
printf("(%d,%d) ", qhpos[j].x, qhpos[j].z);
|
||||||
}
|
}
|
||||||
printf("\n");
|
printf("\n");
|
||||||
//*/
|
*/
|
||||||
|
|
||||||
// This little magic code checks if there is a meaningful chance for
|
// This little magic code checks if there is a meaningful chance for
|
||||||
// this seed base to generate swamps in the area.
|
// this seed base to generate swamps in the area.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user