Open EricTianC opened 4 years ago
源代码中急需病床减去了隔离人数,但发病人数中已并不包含隔离人数 建议将MyPanel.java中line:94行的修改为 int needBeds = Math.max(Constants.BED_COUNT - PersonPool.getInstance().getPeopleSize(Person.State.FREEZE), 0)==0 ?PersonPool.getInstance().getPeopleSize(Person.State.CONFIRMED) :0; 也可以到我的分支https://github.com/EricTianC/VirusBroadcast下查看。 另外,我增加了图形控制台(尽管还很简陋)
int needBeds = Math.max(Constants.BED_COUNT - PersonPool.getInstance().getPeopleSize(Person.State.FREEZE), 0)==0 ?PersonPool.getInstance().getPeopleSize(Person.State.CONFIRMED) :0;
源代码中急需病床减去了隔离人数,但发病人数中已并不包含隔离人数 建议将MyPanel.java中line:94行的修改为
int needBeds = Math.max(Constants.BED_COUNT - PersonPool.getInstance().getPeopleSize(Person.State.FREEZE), 0)==0 ?PersonPool.getInstance().getPeopleSize(Person.State.CONFIRMED) :0;
也可以到我的分支https://github.com/EricTianC/VirusBroadcast下查看。 另外,我增加了图形控制台(尽管还很简陋)