Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixed abs bug

  • Loading branch information...
commit dd4d9b52cb75296faf9bc7b617bdc4991a0a88e8 1 parent d539a8a
@tjhance tjhance authored
Showing with 1 addition and 2 deletions.
  1. +1 −1  UnholyGameViewController.cpp
  2. +0 −1  server.cpp
View
2  UnholyGameViewController.cpp
@@ -129,7 +129,7 @@ void UnholyGameViewController::_drawFloor(float alpha) {
glBegin(GL_QUADS);
for (unsigned x = 0; x < GridSizeX; ++x) {
for (unsigned y = 0; y < GridSizeY; ++y) {
- if ((unsigned)abs(x+y) % 2 == 1) {//modulo 2
+ if ((x+y) % 2 == 1) {//modulo 2
glColor4f(1.0f,1.0f,1.0f, alpha); //white
} else {
glColor4f(0.0f,0.0f,0.0f, alpha); //black
View
1  server.cpp
@@ -119,7 +119,6 @@ int main() {
else {
ReadPacket* rp;
while((rp = cl.sc->receive_packet()) != NULL) {
- printf("packet received! :D\n");
//Connect
if(rp->message_type == CTS_CONNECT) {
printf("Received connect message\n");

0 comments on commit dd4d9b5

Please sign in to comment.
Something went wrong with that request. Please try again.