Added: .gitattributes

Changed: LF for *lua *cpp *h *txt
Changed: if() reordering
This commit is contained in:
Deyan Dobromirov 2016-05-26 14:23:37 +03:00
parent 21e7ea6984
commit ee1a81c3fe
7 changed files with 54 additions and 46 deletions

6
.gitattributes vendored Normal file
View File

@ -0,0 +1,6 @@
*.h text eol=lf
*.cpp text eol=lf
*.lua text eol=lf
*.json text eol=lf
*.bat text eol=crlf
*.md text eol=lf

View File

@ -3,3 +3,6 @@ X - Fail
D - Discontinued D - Discontinued
N - Not applicable N - Not applicable
? - Not yet tested ? - Not yet tested
Make TA export the database in Unix format
Make the player own the track spawned

View File

@ -26,7 +26,7 @@ local asmlib = trackasmlib
------ CONFIGURE ASMLIB ------ ------ CONFIGURE ASMLIB ------
asmlib.InitAssembly("track","assembly") asmlib.InitAssembly("track","assembly")
asmlib.SetOpVar("TOOL_VERSION","5.237") asmlib.SetOpVar("TOOL_VERSION","5.238")
asmlib.SetLogControl(0,"") asmlib.SetLogControl(0,"")
asmlib.SetIndexes("V",1,2,3) asmlib.SetIndexes("V",1,2,3)
asmlib.SetIndexes("A",1,2,3) asmlib.SetIndexes("A",1,2,3)

View File

@ -1371,8 +1371,7 @@ function TOOL:Think()
if(self:GetGhostHolder() ~= 0 and utilIsValidModel(model)) then if(self:GetGhostHolder() ~= 0 and utilIsValidModel(model)) then
if (not self.GhostEntity or if (not self.GhostEntity or
not self.GhostEntity:IsValid() or not self.GhostEntity:IsValid() or
self.GhostEntity:GetModel() ~= model self.GhostEntity:GetModel() ~= model) then -- If none ...
) then -- If none ...
self:MakeGhostEntity(model) self:MakeGhostEntity(model)
end end
self:UpdateGhost(self.GhostEntity, self:GetOwner()) self:UpdateGhost(self.GhostEntity, self:GetOwner())

View File

@ -17,7 +17,7 @@ title Addon %Name% updater/publisher
echo Press Crtl+C to terminate ! echo Press Crtl+C to terminate !
echo Press a key if you do not want to wait ! echo Press a key if you do not want to wait !
echo Rinning in %RevPath%. echo Rinning in %RevPath%.
echo Npp Find --\h{1,}\r\n-- replace --\r\n-- in dos format before commit ! echo Npp Find --\h{1,}\n-- replace --\n-- in dos format before commit !
echo. echo.
timeout 3 timeout 3