mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-26 00:47:00 +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;
|
vector<pair<int, cell*>> result;
|
||||||
for(auto& v: cgi.walloffsets) if(v.first >= 0) result.push_back(v);
|
for(auto& v: cgi.walloffsets) if(v.first >= 0) result.push_back(v);
|
||||||
sort(result.begin(), result.end());
|
sort(result.begin(), result.end());
|
||||||
// not a correct fix
|
int last = 0;
|
||||||
result.emplace_back(result.back().first + result.back().second->type + (WDIM == 2 ? 2 : 0), nullptr);
|
for(auto& r: result) if(r.second) last = r.first + r.second->type + (WDIM == 2 ? 2 : 0);
|
||||||
// result.emplace_back(isize(cgi.wallstart), nullptr);
|
result.emplace_back(last, nullptr);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user