1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-29 04:47:41 +00:00

rug:: nonisotropic native geometry

This commit is contained in:
Zeno Rogue
2020-04-17 17:17:22 +02:00
parent 0a6c80e909
commit 44cfe1af59
2 changed files with 30 additions and 15 deletions

View File

@@ -940,7 +940,7 @@ EX void runGeometryExperiments() {
#if CAP_COMMANDLINE
eGeometry readGeo(const string& ss) {
EX eGeometry readGeo(const string& ss) {
for(int i=0; i<isize(ginf); i++) if(ginf[i].shortname == ss) return eGeometry(i);
bool numeric = true;
for(char c: ss) if(c < '0' || c > '9') numeric = false;