1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-29 19:40:35 +00:00

intra:: using .at instead of []

This commit is contained in:
Zeno Rogue 2021-10-07 12:53:01 +02:00
parent cb6226b5ab
commit b1774a0763

View File

@ -241,7 +241,7 @@ EX map<cellwalker, connection_data> connections;
EX connection_data* find_connection(int a, int b) {
for(auto& p: connections)
if(intra_id[p.first.at] == a && p.second.target_world == b)
if(intra_id.at(p.first.at) == a && p.second.target_world == b)
return &p.second;
return nullptr;
}
@ -360,12 +360,12 @@ struct resetter {
#endif
EX void may_switch_to(cell *c) {
if(in) switch_to(intra_id[c]);
if(in) switch_to(intra_id.at(c));
}
EX int full_wall_offset(cell *c) {
int wo = currentmap->wall_offset(c);
if(in) wo += data[intra_id[c]].wallindex;
if(in) wo += data[intra_id.at(c)].wallindex;
return wo;
}