mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-11-18 14:45:12 +00:00
fixups
This commit is contained in:
@@ -204,7 +204,7 @@ tuple<ld,bool,ld> quality(bantar_config cp) {
|
|||||||
|
|
||||||
int notry = 0;
|
int notry = 0;
|
||||||
|
|
||||||
debugflags debug_bantar = {"demo_bantar"};
|
debugflag debug_bantar = {"demo_bantar"};
|
||||||
|
|
||||||
void bantar() {
|
void bantar() {
|
||||||
if(!on) return;
|
if(!on) return;
|
||||||
|
|||||||
@@ -917,7 +917,7 @@ void initialize_dispersion() {
|
|||||||
cell *c = net[i].where;
|
cell *c = net[i].where;
|
||||||
auto cid = get_cellcrawler_id(c);
|
auto cid = get_cellcrawler_id(c);
|
||||||
if(!scc.count(cid.first)) {
|
if(!scc.count(cid.first)) {
|
||||||
DEBB(debug_kohonen_dispoersion, ("Building cellcrawler id = ", itsh(cid.first)));
|
DEBB(debug_kohonen_dispersion, ("Building cellcrawler id = ", itsh(cid.first)));
|
||||||
buildcellcrawler(c, scc[cid.first], cid.second);
|
buildcellcrawler(c, scc[cid.first], cid.second);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,6 +8,8 @@ namespace rogueviz {
|
|||||||
|
|
||||||
transmatrix& memo_relative_matrix(cell *c1, cell *c2);
|
transmatrix& memo_relative_matrix(cell *c1, cell *c2);
|
||||||
|
|
||||||
|
namespace kohonen { extern debugflag debug_kohonen; }
|
||||||
|
|
||||||
namespace kohonen_test {
|
namespace kohonen_test {
|
||||||
|
|
||||||
using namespace kohonen;
|
using namespace kohonen;
|
||||||
@@ -321,7 +323,7 @@ int qenergy = 0;
|
|||||||
double tot_energy = 0;
|
double tot_energy = 0;
|
||||||
|
|
||||||
bool check(bool deb) {
|
bool check(bool deb) {
|
||||||
dynamicval dd(debugflags, 0);
|
dynamicval<bool> dd(debug_kohonen.enabled, false);
|
||||||
set_neuron_initial();
|
set_neuron_initial();
|
||||||
t = tmax;
|
t = tmax;
|
||||||
dynamicval dp(qpct, 0);
|
dynamicval dp(qpct, 0);
|
||||||
@@ -414,7 +416,7 @@ void som_table() {
|
|||||||
set_parameters(cnt);
|
set_parameters(cnt);
|
||||||
do {
|
do {
|
||||||
tries[cnt].second++;
|
tries[cnt].second++;
|
||||||
dynamicval dd(debugflags, 0);
|
dynamicval<bool> dd(debug_kohonen.enabled, false);
|
||||||
bool chk = check(false);
|
bool chk = check(false);
|
||||||
if(chk)
|
if(chk)
|
||||||
tries[cnt].first++;
|
tries[cnt].first++;
|
||||||
|
|||||||
4
util.cpp
4
util.cpp
@@ -1031,11 +1031,11 @@ EX string find_file(string s) {
|
|||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
|
|
||||||
EX void file_error(const char* fname) {
|
EX void file_error(const string& fname) {
|
||||||
throw hr_exception("missing file error");
|
throw hr_exception("missing file error");
|
||||||
}
|
}
|
||||||
|
|
||||||
EX void file_format_error(const char* fname) {
|
EX void file_format_error(const string& fname) {
|
||||||
throw hr_exception("file format error");
|
throw hr_exception("file format error");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user