1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-09-27 13:48:15 +00:00

rogueviz::flocking:: changing precision works, and CLI configurable

This commit is contained in:
Zeno Rogue 2019-04-21 20:52:10 +02:00
parent 48d6523672
commit fd03c60a85

View File

@ -318,6 +318,9 @@ namespace flocking {
else if(argis("-flockfollow")) {
shift(); follow = argi();
}
else if(argis("-flockprec")) {
shift(); precision = argi();
}
else if(argis("-flockshape")) {
shift(); shape = argcs()[0];
for(int i=0; i<N; i++)
@ -409,7 +412,7 @@ namespace flocking {
dialog::addSelItem("precision", its(precision), 'p');
dialog::add_action([]() {
dialog::editNumber(N, 0, 1000, 1, 10, "", "smaller number = more precise simulation");
dialog::editNumber(precision, 0, 1000, 1, 10, "", "smaller number = more precise simulation");
});
dialog::addSelItem("change geometry", XLAT(ginf[geometry].shortname), 'g');