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:
parent
728e57547a
commit
a97dc473bf
@ -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) {
|
||||||
|
@ -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");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user