1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-20 15:40:26 +00:00

fixed gen_sample_list (more walkaround than fix)

This commit is contained in:
Zeno Rogue 2021-10-08 11:25:09 +02:00
parent 41308e8e98
commit be1df0a68d

View File

@ -1415,7 +1415,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());
result.emplace_back(isize(cgi.wallstart)-1, nullptr);
// not a correct fix
result.emplace_back(result.back().first + result.back().second->type, nullptr);
// result.emplace_back(isize(cgi.wallstart), nullptr);
return result;
}