/[projectaxis]/projectaxis/projectAxis/src/visual/panel/pgpanel_seltile.cpp
ViewVC logotype

Diff of /projectaxis/projectAxis/src/visual/panel/pgpanel_seltile.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by leiavoia, Wed Aug 20 18:27:14 2003 UTC revision 1.2 by leiavoia, Sun Sep 14 01:05:00 2003 UTC
# Line 45  void PG_Panel_SelTile::Refresh(int x, in Line 45  void PG_Panel_SelTile::Refresh(int x, in
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) {
# Line 59  void PG_Panel_SelTile::Refresh(int x, in Line 57  void PG_Panel_SelTile::Refresh(int x, in
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) {

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26