投稿者 トピック: movingobj waytype=water が作成されない  (参照数 3256 回)

z9999+

  • 管理人
  • 急行
  • *
  • 投稿: 381
movingobj waytype=water が作成されない
« on: 2011/07/21 23:47 »
reported on a japanese community.

Problem:
movingobj waytype=water never be built on map even though allowed all climates.

- There is no chance on sea. (not boden!)
- There is no chance on seaside. (not flach!)
- There is no chance on river. (get_top()!)

コード: [選択]
// no need to test the borders, since they are mostly slopes anyway
for(k.y=1; k.y<get_groesse_y()-1; k.y++) {
for(k.x=(k.y<old_y)?old_x:1; k.x<get_groesse_x()-1; k.x++) {
grund_t *gr = lookup_kartenboden(k);
if(gr->get_top()==0  &&  gr->get_typ()==grund_t::boden  &&  gr->get_grund_hang()==hang_t::flach) {