Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #10181: Show error message on failed industry prospecting #10202

Closed

Conversation

carlossss111
Copy link
Contributor

@carlossss111 carlossss111 commented Nov 29, 2022

Motivation / Problem

Fixes the silent fail when prospecting an industry.
Closes #10181

Description

An error message box is displayed when the player fails to prospect an industry by random chance.

Limitations

The error message is not displayed when the map is too full for another industry. I was not sure if this would be in scope. Edit: It's in scope

Checklist for review

Some things are not automated, and forgotten often. This list is a reminder for the reviewers.

  • The bug fix is important enough to be backported? (label: 'backport requested')
  • This PR touches english.txt or translations? Check the guidelines
  • This PR affects the save game format? (label 'savegame upgrade')
  • This PR affects the GS/AI API? (label 'needs review: Script API')
    • ai_changelog.hpp, gs_changelog.hpp need updating.
    • The compatibility wrappers (compat_*.nut) need updating.
  • This PR affects the NewGRF API? (label 'needs review: NewGRF')

src/industry_cmd.cpp Outdated Show resolved Hide resolved
@2TallTyler 2TallTyler added size: trivial This Pull Request is trivial preview This PR is receiving preview builds labels Nov 29, 2022
@2TallTyler 2TallTyler added this to the 13.0 milestone Nov 29, 2022
@DorpsGek DorpsGek temporarily deployed to preview-pr-10202 November 29, 2022 18:37 Inactive
@DorpsGek DorpsGek temporarily deployed to preview-pr-10202 November 29, 2022 19:21 Inactive
src/lang/english.txt Outdated Show resolved Hide resolved
src/industry_cmd.cpp Outdated Show resolved Hide resolved
@DorpsGek DorpsGek temporarily deployed to preview-pr-10202 November 29, 2022 21:14 Inactive
@DorpsGek DorpsGek temporarily deployed to preview-pr-10202 November 30, 2022 23:53 Inactive
@DorpsGek DorpsGek temporarily deployed to preview-pr-10202 December 1, 2022 09:07 Inactive
@carlossss111 carlossss111 requested review from 2TallTyler and PeterN and removed request for 2TallTyler December 5, 2022 13:00
src/industry_cmd.cpp Outdated Show resolved Hide resolved
@2TallTyler 2TallTyler added the work: minor details This Pull Request has some minor details left to do label Dec 16, 2022
src/industry_cmd.cpp Outdated Show resolved Hide resolved
Co-authored-by: Michael Lutz <michi@icosahedron.de>
@DorpsGek DorpsGek temporarily deployed to preview-pr-10202 December 25, 2022 18:44 Inactive
@2TallTyler 2TallTyler removed the work: minor details This Pull Request has some minor details left to do label Dec 25, 2022
@glx22
Copy link
Contributor

glx22 commented Dec 25, 2022

Weird I used my super powers to "squash and merge" (which worked as I can see the commit in master), but somehow that didn't close the PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
preview This PR is receiving preview builds size: trivial This Pull Request is trivial
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: no message to player when industry prospecting fails
8 participants