删除一些会导致报错的老设计/老代码

This commit is contained in:
MrZ626
2021-04-28 21:36:13 +08:00
parent f48a9c6a33
commit e50f1d9f50
2 changed files with 0 additions and 15 deletions

View File

@@ -408,11 +408,9 @@ function NET.updateWS_play()
for i=1,#PLY_NET do
if PLY_NET[i].uid==d.uid then
PLY_NET[i].config=d.config
PLY_NET[i].p:setConf(d.config)
break
end
end
resetGameData("qn")
end
elseif res.action==6 then--One ready
for i,p in next,PLY_NET do

View File

@@ -213,19 +213,6 @@ function Player:setRS(RSname)
self.RS=kickList[RSname]
end
function Player:setConf(confStr)
confStr=JSON.decode(confStr)
if confStr then
for k,v in next,confStr do
if not GAME.modeEnv[k]then
self.gameEnv[k]=v
end
end
else
LOG.print("Bad conf from "..self.username.."#"..self.uid)
end
end
function Player:getHolePos()--Get a good garbage-line hole position
if self.garbageBeneath==0 then
return generateLine(self:RND(10))