minor stylistic improvements
This commit is contained in:
parent
5c791a5cbb
commit
84954c062d
1 changed files with 2 additions and 2 deletions
|
@ -97,13 +97,13 @@ requestHandler conn (tl, pl, cls, sem) (TL.AddPlayerTickR playerName tick) = do
|
||||||
requestHandler conn (tl, pl, cls, sem) (TL.InitializeTickLeisteR preTickLeiste) = do
|
requestHandler conn (tl, pl, cls, sem) (TL.InitializeTickLeisteR preTickLeiste) = do
|
||||||
(tl', pl') <- playerNameListToTickLeisteList preTickLeiste
|
(tl', pl') <- playerNameListToTickLeisteList preTickLeiste
|
||||||
let tll = tickLeisteListToPlayerList pl tl'
|
let tll = tickLeisteListToPlayerList pl tl'
|
||||||
broadcastEvent (TL.InitializeTickLeisteE $ tll) cls
|
broadcastEvent (TL.InitializeTickLeisteE tll) cls
|
||||||
return (TL.fromList tl', pl', cls, sem)
|
return (TL.fromList tl', pl', cls, sem)
|
||||||
|
|
||||||
-- TODO
|
-- TODO
|
||||||
-- Also TickLeisteR must be inside the modifyMVar, because we use the MVar also as a lock, and we can't
|
-- Also TickLeisteR must be inside the modifyMVar, because we use the MVar also as a lock, and we can't
|
||||||
-- have changes between reading the TickLeiste and sending it.
|
-- have changes between reading the TickLeiste and sending it.
|
||||||
requestHandler conn ss@(tl, pl, cls, sem) (TL.TickLeisteR) = do
|
requestHandler conn ss@(tl, pl, cls, sem) TL.TickLeisteR = do
|
||||||
sendClientEvent (TL.InitializeTickLeisteE $ tickLeisteToPlayerList pl tl) conn
|
sendClientEvent (TL.InitializeTickLeisteE $ tickLeisteToPlayerList pl tl) conn
|
||||||
return ss
|
return ss
|
||||||
requestHandler conn (tl, pl, cls, sem) (TL.ChangeNameR playerUUID playerName) = do
|
requestHandler conn (tl, pl, cls, sem) (TL.ChangeNameR playerUUID playerName) = do
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue