Skip to content

Commit d36315e

Browse files
Merge branch 'master' into mapfixes-improve
2 parents e0662af + 7514ace commit d36315e

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

[gamemodes]/[play]/play/play.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
local function onResourceStartPlay()
2+
math.randomseed(os.time()) -- Fix getting exact same skins over and over
23
resetMapInfo()
34
createVehicles()
45

[gamemodes]/[play]/play/play_players.lua

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,10 @@ local spawnsCount = #playerSpawns
22
local skinsCount = #playerSkins
33

44
function playSpawnPlayer(playerElement)
5-
local validElement = isElement(playerElement)
6-
7-
if not validElement then
5+
if not isElement(playerElement) then
86
return false
97
end
10-
8+
119
local randomSpawn = math.random(spawnsCount)
1210
local spawnData = playerSpawns[randomSpawn]
1311
local posX, posY, posZ, rotX = unpack(spawnData)

0 commit comments

Comments
 (0)