Skip to content

Commit

Permalink
Use the correct update mode with spire@home
Browse files Browse the repository at this point in the history
  • Loading branch information
DataBeaver committed May 23, 2021
1 parent 7425cc7 commit fd4bd64
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions spire.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -966,6 +966,7 @@ void Spire::receive(Network::ConnectionTag, const string &message)
empty.set_core(layout.get_core());
empty.set_traps(string(), layout.get_traps().size()/5);

update_mode = (income ? Layout::FULL : Layout::FAST);
if(towers)
score_func = (income ? &towers_score<income_score, 0x40404> : &towers_score<damage_score, 0x40404>);
else
Expand Down

0 comments on commit fd4bd64

Please sign in to comment.