rt

An obligatory Java Project
Log | Files | Refs | LICENSE

commit 881dae6971e08c32243b4d5942c54d03149865f8
parent 8cc4d8d07c4964765e359de4ecef15adf89a4eea
Author: zerous Naveen Narayanan <zerous@nocebo.space>
Date:   Fri, 13 Dec 2019 18:59:26 +0100

Use a game object for every game to obviate the limitation on the number of groups playing the same script at the same time.

Diffstat:
Mservertask.java | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/servertask.java b/servertask.java @@ -91,8 +91,9 @@ public class servertask implements Runnable { roundAvg = Math.round(g.getAvgscr()); for (script s : server.Scripts) { if (roundAvg == s.getDlevel()) { - pscript = s; - return s.getRoles(); + pgame = server.getGame(s,g); + pscript = pgame.getScript(); + return pscript.getRoles(); } }