Skip to content

fix comparing dropped_turn with gameturn#4844

Merged
Loobinex merged 1 commit into
dkfans:masterfrom
Shinthoras0815:fix-computer-redrop-delay
May 26, 2026
Merged

fix comparing dropped_turn with gameturn#4844
Loobinex merged 1 commit into
dkfans:masterfrom
Shinthoras0815:fix-computer-redrop-delay

Conversation

@Shinthoras0815
Copy link
Copy Markdown
Contributor

The check preventing computers redropping their creatures was being ignored.

Copilot AI review requested due to automatic review settings May 26, 2026 18:07
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Adjusts the “redrop” timing check when selecting a creature to defend/pickup so the delay is enforced correctly based on elapsed turns.

Changes:

  • Updates the condition from comparing dropped_turn against now + delay to comparing now against dropped_turn + delay.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/player_comptask.c
Comment on lines +2861 to 2862
if ((cctrl->dropped_turn + COMPUTER_REDROP_DELAY) < get_gameturn())
{
@Loobinex Loobinex merged commit c735263 into dkfans:master May 26, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants