mirror of
https://github.com/Cubitect/cubiomes.git
synced 2025-09-24 04:03:39 -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();
|
||||
|
||||
// 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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user