Skip to content

Break up ship_ai_update_race, and some other fixes that snuck in (oops) - #213

Open
unofficial-fish wants to merge 1 commit into
phoboslab:masterfrom
unofficial-fish:ship_ai
Open

Break up ship_ai_update_race, and some other fixes that snuck in (oops)#213
unofficial-fish wants to merge 1 commit into
phoboslab:masterfrom
unofficial-fish:ship_ai

Conversation

@unofficial-fish

Copy link
Copy Markdown

Mostly, ctrl-x ctrl-v a block out of ship_ai_update_race eight times (and style cleanup afterwards.) ship_ai_update_race should be less intimidating to edit now (it used to have a dozen levels of indentation in places.)

Additionally, some math at the end of ship_ai_update_race got simplified, and ship_ai_case_in_sight is no longer using a switch statement. I don't know if there's much reason to strain these out and submit them separately, so they're here too.

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.

1 participant