Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: When floodgate is closed, water dries up upstream as wel  (Read 440 times)

ToxicFrog

  • Bay Watcher
    • View Profile
When floodgate is closed, water dries up upstream as wel
« on: August 22, 2006, 02:50:00 pm »

Another water dynamics bug! In this one. if you have multiple floodgates in the same flow of water, closing any of them will cut off the entire flow - even if this means mysteriously cancelling the water flow upstream as well as down.
Reproduction:
code:

|  THE  | a b c d e f
| RIVER |___X...X...+
| v v v |


Channel(a) brings water from the river and is stopped by floodgate(b). Open (b) and (d) in any order, and rooms (c) and (e) will be flooded, as expected. Closing (b) also works as expected.
However, if you open (b) and (d), wait for both rooms to flood, and then close (d)...both rooms will dry. (b) will still be open, but the water will steadfastly refuse to pass through it until it's opened and closed again.

I'm not sure how this behaves with more than two floodgates in the chain, but I'll update with testing results as soon as I can get my reclaimers to build a test rig (unless someone beats me to it).

Logged