9 #include "gb/tweakables.h" 10 #include "gb/utils/rand.h" 17 int t = planet.Maxy * planet.Maxx;
19 for (
int i = 0, x = 0, y = 0; i < t; i++) {
22 if (++x >= planet.Maxx) {
27 for (
int i = 0; i < t; i++) {
28 struct map sw = xymap[i];
29 int j = int_rand(0, t - 1);
39 int Getxysect(
const Planet &p,
int *x,
int *y,
int r) {
45 max = p.Maxx * p.Maxy;
49 if (++getxy > max) getxy = 0;
void PermuteSects(const Planet &planet)
int Getxysect(const Planet &p, int *x, int *y, int r)