Fix broken duping when not having loaded a file previously (#444)

* Fix broken duping when not having loaded a file previously
Expose codec revision in AdvDupe2.CODEC_REVISION

* Assign Revision on copy
This commit is contained in:
Denneisk 2023-10-30 19:35:00 -04:00 committed by GitHub
parent 7f061801bf
commit db5fd6b439
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -9,6 +9,7 @@
]]
local REVISION = 5
AdvDupe2.CODEC_REVISION = REVISION
include "sh_codec_legacy.lua"
AddCSLuaFile "sh_codec_legacy.lua"

View File

@ -349,6 +349,7 @@ if(SERVER)then
ply.AdvDupe2.HeadEnt = HeadEnt
ply.AdvDupe2.Entities = Entities
ply.AdvDupe2.Constraints = GetSortedConstraints(ply, Constraints)
ply.AdvDupe2.Revision = AdvDupe2.CODEC_REVISION
net.Start("AdvDupe2_SetDupeInfo")
net.WriteString("")