capturetheflag/mods
ANAND d4c612d2fb Fix flag claimed right after creation (#433)
Regression introduced by abbd62ac:

- Since abbd62ac, all map metas are loaded at server startup.
- In `ctf_match.create_teams`, `map.teams.pos` is passed to `ctf_flag.add`.
- As tables are passed by reference, properties added to `ctf.team("team_name").flags[i]` are also added to ctf_map.map.teams.
- This means that the next time this table is passed to `ctf_flag.add`, this table would already contain the `claimed` property, that holds the name of the player who last claimed the flag at this pos, and the name of their team.

This is fixed by simply passing `map.teams.pos` to `ctf_flag.add` using `table.copy`
2019-07-11 08:57:10 +02:00
..
crafting@97c8731b63 Add crafting mod 2018-04-18 23:30:38 +01:00
ctf Fix flag claimed right after creation (#433) 2019-07-11 08:57:10 +02:00
ctf_pvp_engine@26f496aced Update ctf_pvp_engine 2019-07-10 14:56:04 +05:30
mtg Remove saplings and flint fully 2019-03-21 17:45:39 +00:00
other Fix deprecated API method calls 2019-07-05 15:48:59 +05:30
pvp Fix deprecated API method calls 2019-07-05 15:48:59 +05:30