Skip to content

Commit 715e4a8

Browse files
removed useless variable
1 parent b9663b2 commit 715e4a8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Defold/scripts/game_controller.script

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ local client
99
local room
1010
-- 1 grid on server is this many pixel:
1111
local scaling = 100;
12-
local randomRotation = vmath.quat()
1312
local other_players = {}
1413

1514
function onStateChange(change)
@@ -23,7 +22,7 @@ function onStateChange(change)
2322
newx = room.state.players[other_id].x*scaling;
2423
newy = room.state.players[other_id].y*scaling;
2524

26-
created_id = factory.create("default:/other_player_factory#factory", vmath.vector3(newx, newy, 1),randomRotation,{},1)
25+
created_id = factory.create("default:/other_player_factory#factory", vmath.vector3(newx, newy, 1),vmath.quat(),{},1)
2726
other_players[other_id] = created_id
2827

2928
elseif other_players[other_id] and other_id ~= id then

0 commit comments

Comments
 (0)