45 |
last_x = x; |
last_x = x; |
46 |
last_y = y; |
last_y = y; |
47 |
|
|
48 |
char b[4]; // char buffer for converting int to char |
char coordstr[20] = ""; |
|
|
|
|
char coordstr[16] = ""; |
|
49 |
strcat( coordstr,"Tile x"); |
strcat( coordstr,"Tile x"); |
50 |
strcat( coordstr, gcvt(x, 3, b) ); |
strcat( coordstr, rm->IntToChar(x).c_str() ); |
51 |
strcat( coordstr,", y"); |
strcat( coordstr,", y"); |
52 |
strcat( coordstr, gcvt(y, 3, b) ); |
strcat( coordstr, rm->IntToChar(y).c_str() ); |
53 |
|
|
54 |
// draw tile & coords text |
// draw tile & coords text |
55 |
if (tile != NULL) { |
if (tile != NULL) { |
57 |
tile->SetCoordsAndDraw(x,y); |
tile->SetCoordsAndDraw(x,y); |
58 |
} |
} |
59 |
// set road quality |
// set road quality |
60 |
roadq_out->SetText( gcvt(themap->GetRoadQ(x,y), 3, b) ); |
roadq_out->SetText( rm->IntToChar( themap->GetRoadQ(x,y) ).c_str() ); |
61 |
// get pod if any |
// get pod if any |
62 |
Pod* temp = themap->GetOccu(x,y); |
Pod* temp = themap->GetOccu(x,y); |
63 |
if (temp != NULL) { |
if (temp != NULL) { |