mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-20 15:40:26 +00:00
fixed some unitialized variable warnings
This commit is contained in:
parent
7058ccf747
commit
a8a402e6ab
@ -442,7 +442,7 @@ void do_viewdist(cell *c, const transmatrix& V, color_t& wcol, color_t& fcol) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
string label = "";
|
string label = "";
|
||||||
int dc;
|
int dc = 0xFFD500;
|
||||||
|
|
||||||
switch(number_coding) {
|
switch(number_coding) {
|
||||||
case ncDistance: {
|
case ncDistance: {
|
||||||
|
@ -172,7 +172,7 @@ namespace yendor {
|
|||||||
if(true) {
|
if(true) {
|
||||||
int t = -1;
|
int t = -1;
|
||||||
bignum full_id;
|
bignum full_id;
|
||||||
bool onlychild;
|
bool onlychild = true;
|
||||||
|
|
||||||
cellwalker ycw(yendor, hrand(yendor->type));
|
cellwalker ycw(yendor, hrand(yendor->type));
|
||||||
ycw--; if(S3 == 3) ycw--;
|
ycw--; if(S3 == 3) ycw--;
|
||||||
@ -202,7 +202,7 @@ namespace yendor {
|
|||||||
if(ycw.at->land == laEndorian) {
|
if(ycw.at->land == laEndorian) {
|
||||||
// follow the branch in Yendorian
|
// follow the branch in Yendorian
|
||||||
int bestval = -2000;
|
int bestval = -2000;
|
||||||
int best, qbest;
|
int best = 0, qbest = 0;
|
||||||
for(int d=0; d<ycw.at->type; d++) {
|
for(int d=0; d<ycw.at->type; d++) {
|
||||||
setdist(ycw.at, 7, ycw.peek());
|
setdist(ycw.at, 7, ycw.peek());
|
||||||
cell *c1 = (ycw+d).cpeek();
|
cell *c1 = (ycw+d).cpeek();
|
||||||
|
Loading…
Reference in New Issue
Block a user