mirror of
https://github.com/gooba42/adventureland.git
synced 2026-10-14 18:39:27 -05:00
Switch to tabs instead of spaces
This commit is contained in:
+11
-11
@@ -12,17 +12,17 @@ var smap_data = workerData.smap_data;
|
||||
var amap_data = workerData.amap_data;
|
||||
|
||||
parentPort.on("message", function (data) {
|
||||
try {
|
||||
//console.log(data);
|
||||
if (data.type == "fast_astar") {
|
||||
parentPort.postMessage({ type: "monster_move", move: fast_astar(data), id: data.id, in: data.in });
|
||||
}
|
||||
if (data.type == "exit") {
|
||||
process.exit();
|
||||
}
|
||||
} catch (e) {
|
||||
console.log(e);
|
||||
}
|
||||
try {
|
||||
//console.log(data);
|
||||
if (data.type == "fast_astar") {
|
||||
parentPort.postMessage({ type: "monster_move", move: fast_astar(data), id: data.id, in: data.in });
|
||||
}
|
||||
if (data.type == "exit") {
|
||||
process.exit();
|
||||
}
|
||||
} catch (e) {
|
||||
console.log(e);
|
||||
}
|
||||
});
|
||||
|
||||
setInterval(function () {}, 10);
|
||||
|
||||
Reference in New Issue
Block a user