删除一些会导致报错的老设计/老代码
This commit is contained in:
@@ -408,11 +408,9 @@ function NET.updateWS_play()
|
|||||||
for i=1,#PLY_NET do
|
for i=1,#PLY_NET do
|
||||||
if PLY_NET[i].uid==d.uid then
|
if PLY_NET[i].uid==d.uid then
|
||||||
PLY_NET[i].config=d.config
|
PLY_NET[i].config=d.config
|
||||||
PLY_NET[i].p:setConf(d.config)
|
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
resetGameData("qn")
|
|
||||||
end
|
end
|
||||||
elseif res.action==6 then--One ready
|
elseif res.action==6 then--One ready
|
||||||
for i,p in next,PLY_NET do
|
for i,p in next,PLY_NET do
|
||||||
|
|||||||
@@ -213,19 +213,6 @@ function Player:setRS(RSname)
|
|||||||
self.RS=kickList[RSname]
|
self.RS=kickList[RSname]
|
||||||
end
|
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
|
function Player:getHolePos()--Get a good garbage-line hole position
|
||||||
if self.garbageBeneath==0 then
|
if self.garbageBeneath==0 then
|
||||||
return generateLine(self:RND(10))
|
return generateLine(self:RND(10))
|
||||||
|
|||||||
Reference in New Issue
Block a user