summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrsiddharth <s@ricketyspace.net>2020-07-03 15:44:24 -0400
committerrsiddharth <s@ricketyspace.net>2020-07-03 15:44:24 -0400
commit27aef5ad656b1a08edff51d26931b633fd81f553 (patch)
treee98d378b08559bad4020aa36ffe1dc5875501ce8
parentf8d93a3fb709e737fd684c03199fe545c571e322 (diff)
fourteen/server.rkt: Update serialize-players-for
Use foldr instead of foldl.
-rw-r--r--net/ricketyspace/ror/fourteen/server.rkt2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ricketyspace/ror/fourteen/server.rkt b/net/ricketyspace/ror/fourteen/server.rkt
index 3a91788..21485a5 100644
--- a/net/ricketyspace/ror/fourteen/server.rkt
+++ b/net/ricketyspace/ror/fourteen/server.rkt
@@ -491,7 +491,7 @@ The server is responsible for:
[else (player (ip-id plyr)
(ip-body plyr)
(filter-out (ip-waypoints plyr)))]))
- (foldl (lambda (plyr srlzd-pls) (cons (mk-pl plyr) srlzd-pls)) '() pls))
+ (foldr (lambda (plyr srlzd-pls) (cons (mk-pl plyr) srlzd-pls)) '() pls))
;
;