Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Textausgabe entfernt und Schliessentaste hinzugefuegt
  • Loading branch information
thomasspaeth committed Jun 20, 2012
commit 8911e73575e431173e80d4289645e01d03f5f3cd
9 changes: 5 additions & 4 deletions Chess/Interface/interfaceb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,22 +75,23 @@ void Interfaceb::einlesen(int p)
break;
case SDL_QUIT:
exitLoop=true;
exit(-1);
break;
default:
break;
}
}

std::cout << start.x << "-" << start.y << std::endl;
std::cout << ende.x << "-" << ende.y << std::endl;
//std::cout << start.x << "-" << start.y << std::endl;
//std::cout << ende.x << "-" << ende.y << std::endl;

int sx=(int) ((start.x-51)/66);
int sy=(int) ((start.y-61)/66);
int ex=(int) ((ende.x-51)/66);
int ey=(int) ((ende.y-51)/66);

std::cout << sx << "-" << sy << std::endl;
std::cout << ex << "-" << ey << std::endl;
//std::cout << sx << "-" << sy << std::endl;
//std::cout << ex << "-" << ey << std::endl;

p1a=char(int('a')+sx);
p1b=8-sy;
Expand Down