1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-06-21 15:54:07 +00:00

fixes in Kohonen and Rogueviz

This commit is contained in:
Zeno Rogue 2018-05-18 13:57:55 +02:00
parent 728e57547a
commit a97dc473bf
2 changed files with 2 additions and 1 deletions

View File

@ -797,7 +797,7 @@ void kload(const string& fname) {
} }
if(fscanf(f, "%d%d\n", &xcells, &t) != 2) return; if(fscanf(f, "%d%d\n", &xcells, &t) != 2) return;
if(xcells != cells) { if(xcells != cells) {
fprintf(stderr, "Error: bad number of cells\n"); fprintf(stderr, "Error: bad number of cells (x=%d c=%d)\n", xcells, cells);
exit(1); exit(1);
} }
for(neuron& n: net) { for(neuron& n: net) {

View File

@ -1352,6 +1352,7 @@ void init() {
timerghost = false; timerghost = false;
gmatrix.clear(); gmatrix.clear();
calcparam();
drawthemap(); drawthemap();
gmatrix0 = gmatrix; gmatrix0 = gmatrix;
addMessage("RogueViz enabled"); addMessage("RogueViz enabled");