Permalink
Browse files

Client fixed, 2-way communication works

  • Loading branch information...
1 parent 4c42ca7 commit a8869a2d643aecd4975f71ecc3e80898d4c5b7ea @novasharper novasharper committed Nov 5, 2011
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/net/novasharper/tanks/TanksServer/ServerMain.java
@@ -97,8 +97,7 @@ private int addPlayer(String name) {
id = addPlayer(name);
returnMessage.putString(SConstants.fromOrd(SConstants.LOGIN_SUCCESS) +
":" + id + ":" + name, encoder);
- returnMessage.put((byte) 0);
- returnMessage.put((byte) 1);
+ returnMessage.putChar('\0');
break;
case SConstants.MAP_DOWNLOAD:
System.out.println("MAP DOWNLOAD");

0 comments on commit a8869a2

Please sign in to comment.