Browse Source

changed int to var

cecylia 8 years ago
parent
commit
b6ad9733f4
2 changed files with 1 additions and 2 deletions
  1. 0 1
      js/devicescripts.js
  2. 1 1
      phaser.inc.php

+ 0 - 1
js/devicescripts.js

@@ -78,7 +78,6 @@ var deviceScripts = {
             }
             if(!found){
                 //broadcast packet to all ports except where it was received
-                console.log("Sending packet doesn "+ device.ports + " ports");
                 for(var i=0; i<device.ports.length; i++){
                     sendPacket(device.id, i, packet);
                 }

+ 1 - 1
phaser.inc.php

@@ -144,7 +144,7 @@ function getPortRecipient(from, portNum) {
 // WARNING: this should only be called by the animator
 // devicescripts should not be able to access it
 function getRemotePort(src, dst) {
-	for (int i = 0; i < level.links.length; i++) {
+	for (var i = 0; i < level.links.length; i++) {
 		if (level.links[i].src == src && level.links[i].dst == dst) return level.links[i].dstport;
 		if (level.links[i].src == dst && level.links[i].dst == src) return level.links[i].srcport;
 	}