Fix some compiler errors and a mistake in config.cpp.

This commit is contained in:
Arthur O'Dwyer 2022-07-01 14:04:45 -04:00
parent 2486937720
commit 48800f58f8
3 changed files with 5 additions and 5 deletions

View File

@ -2737,7 +2737,7 @@ EX void selectLanguageScreen() {
int v = vid.language;
dynamicval<int> d(vid.language, -1);
for(int i=0; i<NUMLAN-1 || i == v; i++) {
for(int i=0; i<NUMLAN; i++) {
vid.language = i;
dialog::addSelItem(XLAT("EN"), its(100 * transcompleteness[i] / transcompleteness[0]) + "%", 'a'+i);
}

View File

@ -447,7 +447,7 @@ struct debugScreen {
dialog::addBack();
dialog::display();
keyhandler = [this, what] (int sym, int uni) {
keyhandler = [this] (int sym, int uni) {
handlePanning(sym, uni);
dialog::handleNavigation(sym, uni);
if(applyCheat(uni)) ;

View File

@ -3054,14 +3054,14 @@ EX hyperpoint lie_log(hyperpoint h) {
}
else if(sol && !nih) {
h[3] = 0;
if(abs(h[2] > 1e-6)) {
if(abs(h[2]) > 1e-6) {
h[0] *= -h[2] / (exp(-h[2]) - 1);
h[1] *= h[2] / (exp(+h[2]) - 1);
}
}
else if(sol && nih) {
h[3] = 0;
if(abs(h[2] > 1e-6)) {
if(abs(h[2]) > 1e-6) {
ld z = h[2] * log(2);
h[0] *= -z / (exp(-z) - 1);
z = h[2] * log(3);
@ -3070,7 +3070,7 @@ EX hyperpoint lie_log(hyperpoint h) {
}
else if(nih) {
h[3] = 1;
if(abs(h[2] > 1e-6)) {
if(abs(h[2]) > 1e-6) {
ld z = h[2] * log(2);
h[0] *= z / (exp(+z) - 1);
z = h[2] * log(3);