Skip to content
This repository has been archived by the owner on Jun 19, 2021. It is now read-only.

Temp. plant renderer and treegen fixes/improvements #52

Merged
merged 6 commits into from Jul 23, 2016
Merged

Temp. plant renderer and treegen fixes/improvements #52

merged 6 commits into from Jul 23, 2016

Conversation

jonas-schievink
Copy link
Contributor

@jonas-schievink jonas-schievink commented Jul 22, 2016

This is ready to go now!

This is now ready for a first look
This has already proven useful to generate trees and should probably be
used by every worldgen feature to come
@jonas-schievink jonas-schievink changed the title TEMPORARY PLANT RENDERER HAHA Temp. plant renderer and treegen fixes/improvements Jul 22, 2016
loc_seed.hash(&mut fnv);
let rng_seed = fnv.finish();
let seed0 = (rng_seed >> 32) as u32;
let seed1 = rng_seed as u32;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I hate this as cast more every day. It would be way nicer to express your intend clearly in the code, like let seed1: u32 = rng_seed.truncate();. Ok but I guess this can't be improved right now 😞

@LukasKalbertodt
Copy link
Member

I made a few line comments. Otherwise this PR looks nice. I just checked it out to see it in action ... neat 😮

@LukasKalbertodt LukasKalbertodt merged commit 1ad6d54 into OsnaCS:master Jul 23, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants