Skip to content

Commit

Permalink
Fix initial flag counting bug
Browse files Browse the repository at this point in the history
  • Loading branch information
steamroller-airmash committed Jul 28, 2018
1 parent ec288f8 commit f2e8cd3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ctf/src/systems/loginupdate.rs
Expand Up @@ -15,6 +15,7 @@ pub struct LoginUpdateSystem {
pub struct LoginUpdateSystemData<'a> {
pub conns: Read<'a, Connections>,
pub join_channel: Read<'a, OnPlayerJoin>,
pub scores: Read<'a, GameScores>,

// These ones are for both
pub pos: ReadStorage<'a, Position>,
Expand Down Expand Up @@ -55,8 +56,8 @@ impl<'a> System<'a> for LoginUpdateSystem {
flag: *team,
pos: *pos,
id: carrier.0,
blueteam: 0,
redteam: 0,
blueteam: data.scores.blueteam,
redteam: data.scores.redteam,
};

data.conns.send_to_player(
Expand Down
6 changes: 6 additions & 0 deletions improvements.md
Expand Up @@ -72,3 +72,9 @@ Multiple ideas here
### Custom Gamemodes
## Tag
- Drop flag when hit with missile

### Control Protocol
- Make the engine scriptable through a
separate protocol
- Allow a client to hook into all engine events
- Allows clients to be written in other languages too

0 comments on commit f2e8cd3

Please sign in to comment.