fixed some unitialized variable warnings

This commit is contained in:
Zeno Rogue 2018-09-24 00:35:22 +02:00
parent 7058ccf747
commit a8a402e6ab
2 changed files with 3 additions and 3 deletions

View File

@ -442,7 +442,7 @@ void do_viewdist(cell *c, const transmatrix& V, color_t& wcol, color_t& fcol) {
}
string label = "";
int dc;
int dc = 0xFFD500;
switch(number_coding) {
case ncDistance: {

View File

@ -172,7 +172,7 @@ namespace yendor {
if(true) {
int t = -1;
bignum full_id;
bool onlychild;
bool onlychild = true;
cellwalker ycw(yendor, hrand(yendor->type));
ycw--; if(S3 == 3) ycw--;
@ -202,7 +202,7 @@ namespace yendor {
if(ycw.at->land == laEndorian) {
// follow the branch in Yendorian
int bestval = -2000;
int best, qbest;
int best = 0, qbest = 0;
for(int d=0; d<ycw.at->type; d++) {
setdist(ycw.at, 7, ycw.peek());
cell *c1 = (ycw+d).cpeek();