mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-18 15:00:26 +00:00
rogueviz::flocking:: changing precision works, and CLI configurable
This commit is contained in:
parent
48d6523672
commit
fd03c60a85
@ -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');
|
||||
|
Loading…
Reference in New Issue
Block a user