Skip to content

Commit

Permalink
Merge pull request #6 from panel-attack/bugfix-rating-points-for-wron…
Browse files Browse the repository at this point in the history
…g-player

fixes #5
  • Loading branch information
jon12156 authored May 24, 2018
2 parents 88e0f53 + a877532 commit f3292e5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mainloop.lua
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ do
{"2P fakevs at burke.ro", main_net_vs_setup, {"burke.ro"}},
{"2P fakevs at Jon's server (US-East, beta for spectating and ranking)", main_net_vs_setup, {"18.188.43.50"}},
{"2P fakevs at domi1819.xyz (Europe, beta for spectating and ranking)", main_net_vs_setup, {"domi1819.xyz"}},
--{"2P fakevs at localhost (development-use only)", main_net_vs_setup, {"localhost"}},
{"2P fakevs at localhost (development-use only)", main_net_vs_setup, {"localhost"}},
{"2P fakevs local game", main_local_vs_setup},
{"Replay of 1P endless", main_replay_endless},
{"Replay of 1P puzzle", main_replay_puzzle},
Expand Down
2 changes: 1 addition & 1 deletion server.lua
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ Room = class(function(self, a, b)
if a.user_id and leaderboard.players[a.user_id] and leaderboard.players[a.user_id].rating then
a_rating = round(leaderboard.players[a.user_id].rating)
end
if a.user_id and leaderboard.players[b.user_id] and leaderboard.players[a.user_id].rating then
if b.user_id and leaderboard.players[b.user_id] and leaderboard.players[b.user_id].rating then
b_rating = round(leaderboard.players[b.user_id].rating)
end
self.ratings = {{old=a_rating or DEFAULT_RATING, new=a_rating or DEFAULT_RATING, difference=0},
Expand Down

0 comments on commit f3292e5

Please sign in to comment.