1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-20 11:54:48 +00:00

intra:: improved keeping cgi's

This commit is contained in:
Zeno Rogue 2021-09-17 13:50:43 +02:00
parent 9076056fc4
commit a7ddaae7d4

View File

@ -1201,7 +1201,7 @@ EX void check_cgi() {
if(fake::in()) fake::underlying_cgip->timestamp = ntimestamp;
if(arcm::alt_cgip) arcm::alt_cgip->timestamp = ntimestamp;
if(isize(cgis) > 4 && !intra::in) {
if(isize(cgis) > 4 && intra::data.empty()) {
vector<pair<int, string>> timestamps;
for(auto& t: cgis) timestamps.emplace_back(-t.second.timestamp, t.first);
sort(timestamps.begin(), timestamps.end());