weg_t const* const w = ding_cast<weg_t>(obj.some[0]);↓
uint8 const pos = w && w->get_waytype() ? 1 : 0;
weg_t const* const w = ding_cast<weg_t>(obj.some[0]);
weg_t const* const w2 = ding_cast<weg_t>(ding);
uint8 const pos = w && w2->get_waytype() > w->get_waytype() ? 1 : 0;