mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-20 23:50:27 +00:00
fixed gen_sample_list (more walkaround than fix)
This commit is contained in:
parent
41308e8e98
commit
be1df0a68d
@ -1415,7 +1415,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());
|
||||||
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;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user