capturetheflag/mods/ctf
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
..
ctf_alloc Reorganise game into modpacks 2019-01-11 15:52:47 +00:00
ctf_bandages Add bandages 2019-03-05 13:44:14 +00:00
ctf_bounties Fix crash due to missed updation of ctf_color.get_color in ctf_bounties (#427) 2019-07-05 21:48:59 +05:30
ctf_crafting Completely remove wooden tools (#331) 2019-03-19 22:24:43 +05:30
ctf_disable_save Reorganise game into modpacks 2019-01-11 15:52:47 +00:00
ctf_events ctf_events: Fix grenade kills not being detected (#428) 2019-07-10 15:49:33 +05:30
ctf_inventory Add medkits, remove apples 2019-03-05 13:54:25 +00:00
ctf_map Fix flag claimed right after creation (#433) 2019-07-11 08:57:10 +02:00
ctf_marker Increase marker visibility time to 30 seconds 2019-03-17 01:33:56 +00:00
ctf_match Reorganise game into modpacks 2019-01-11 15:52:47 +00:00
ctf_metrics Improve sorting of player score metric 2019-01-11 19:01:49 +00:00
ctf_playertag Rename global playertag to ctf_playertag 2019-04-12 15:41:14 +05:30
ctf_respawn_immunity Disable respawn immunity message when hitting teammates (#417) 2019-06-25 18:54:57 +05:30
ctf_stats Add HUD score elements for flag pickup and capture (#378) 2019-03-19 22:34:41 +05:30
ctf_traps Add traps 2019-03-05 12:39:55 +00:00
ctf_treasure Exclude map's initial_stuff from list of treasures (#385) 2019-04-10 15:37:31 +05:30
ctf_userlimit Reorganise game into modpacks 2019-01-11 15:52:47 +00:00
modpack.txt Reorganise game into modpacks 2019-01-11 15:52:47 +00:00