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

rulegen:: origin_id can be changed now

This commit is contained in:
Zeno Rogue 2021-08-24 00:33:52 +02:00
parent 61c400c459
commit cda7d2337a

View File

@ -1625,6 +1625,8 @@ void clear_all() {
cleanup();
}
EX int origin_id;
EX void generate_rules() {
auto t = SDL_GetTicks();
@ -1662,7 +1664,7 @@ EX void generate_rules() {
t_origin.push_back(c);
}
else if(flags & w_single_origin) {
tcell *c = gen_tcell(0);
tcell *c = gen_tcell(origin_id);
c->dist = 0;
t_origin.push_back(c);
}