Browse Source

bugfixes with KM to m

Olyol95 9 years ago
parent
commit
93d3b559c8

+ 1 - 1
src/uk/ac/bath/oy213/ip/server/commands/net/UpdateLocationCommand.java

@@ -39,7 +39,7 @@ public class UpdateLocationCommand extends NetCommand {
 
             ArrayList<Integer> cardsIDList = new ArrayList<>();
 
-            for (String user: Server.instance().getLocationTable().getUsersWithinRadius(new UserLocation(connection.getUsername(),Double.parseDouble(args[0]),Double.parseDouble(args[1])), Double.parseDouble(args[2])/1000)) {
+            for (String user: Server.instance().getLocationTable().getUsersWithinRadius(new UserLocation(connection.getUsername(),Double.parseDouble(args[0]),Double.parseDouble(args[1])), Double.parseDouble(args[2])/1000.0)) {
 
                 for (Integer i : CardBuilder.getSharedCardIDsFromUser(user)) {