mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-11 18:00:34 +00:00
ray:: fixed missing samples
This commit is contained in:
parent
18113f157f
commit
ce5c1bc369
@ -1429,9 +1429,9 @@ EX namespace hybrid {
|
||||
vector<pair<int, cell*>> result;
|
||||
for(auto& v: cgi.walloffsets) if(v.first >= 0) result.push_back(v);
|
||||
sort(result.begin(), result.end());
|
||||
// not a correct fix
|
||||
result.emplace_back(result.back().first + result.back().second->type + (WDIM == 2 ? 2 : 0), nullptr);
|
||||
// result.emplace_back(isize(cgi.wallstart), nullptr);
|
||||
int last = 0;
|
||||
for(auto& r: result) if(r.second) last = r.first + r.second->type + (WDIM == 2 ? 2 : 0);
|
||||
result.emplace_back(last, nullptr);
|
||||
return result;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user