Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 [2]

Author Topic: water not equalizing  (Read 1396 times)

Firnagzen

  • Bay Watcher
  • [CURIOUSBEAST_INSANE]
    • View Profile
Re: water not equalizing
« Reply #15 on: October 20, 2009, 12:10:34 am »

http://www.bay12games.com/forum/index.php?topic=32453.0

In addition, water preferentially paths along the following directions in this order: Down, orthogonally, and up.

As such, water happily flows down one channel of the u-bend, orthogonally along the bottom, and then up again to the level of the brook minus one. Why minus one? Because at this point, the water would rather path to the end of the river than down, along and up again. So the last z-level of your u-bend doesn't fill up, because instead of flowing there, water goes to the end of the brook instead. Dam your brook, and water will rise to fill up that last level; because it now has nowhere to go but there.
Logged
Christ, are you dwarves or are you elves? If you think Hell has too many demons, then you kill them till the population reaches an acceptable number.

eerr

  • Bay Watcher
    • View Profile
Re: water not equalizing
« Reply #16 on: October 21, 2009, 09:33:50 pm »

btw, water uses pathfinding, closest spot first.
Logged
Pages: 1 [2]