Convert all references to pointers in protos.h
FossilOrigin-Name: c38d75087b98b5b7a4c7963d119b8eb0bf6be2603bdf43a79e743300951a4d28
This commit is contained in:
parent
d25e07085c
commit
d9d56601bb
20 changed files with 406 additions and 383 deletions
|
@ -67,16 +67,16 @@ perlinnoise_2D(float x, float y, int seedstep, float pers)
|
|||
}
|
||||
|
||||
void
|
||||
perlinarea(block &b, int scale, int seed, int psize)
|
||||
perlinarea(const block *b, int scale, int seed, int psize)
|
||||
{
|
||||
srand(seed);
|
||||
seed = rnd(10000);
|
||||
if (!scale)
|
||||
scale = 10;
|
||||
for (int x = b.x; x <= b.x + b.xs; x++) {
|
||||
for (int y = b.y; y <= b.y + b.ys; y++) {
|
||||
for (int x = b->x; x <= b->x + b->xs; x++) {
|
||||
for (int y = b->y; y <= b->y + b->ys; y++) {
|
||||
sqr *s = S(x, y);
|
||||
if (!SOLID(s) && x != b.x + b.xs && y != b.y + b.ys)
|
||||
if (!SOLID(s) && x != b->x + b->xs && y != b->y + b->ys)
|
||||
s->type = FHF;
|
||||
s->vdelta =
|
||||
(int)(perlinnoise_2D(x / ((float)scale) + seed,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue