mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-25 01:20:37 +00:00
ray:: fixed raycaster in 2dim geometries crashing
This commit is contained in:
parent
456adb32c0
commit
d07ae075bc
@ -1417,7 +1417,7 @@ EX namespace hybrid {
|
|||||||
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
|
// not a correct fix
|
||||||
result.emplace_back(result.back().first + result.back().second->type, nullptr);
|
result.emplace_back(result.back().first + result.back().second->type + (WDIM == 2 ? 2 : 0), nullptr);
|
||||||
// result.emplace_back(isize(cgi.wallstart), nullptr);
|
// result.emplace_back(isize(cgi.wallstart), nullptr);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user