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

Issue 584 [House sell Bug] #585

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Issue 584 [House sell Bug] #585

wants to merge 1 commit into from

Conversation

TaktischerSpeck
Copy link

@TaktischerSpeck TaktischerSpeck commented Dec 8, 2019

Resolves #584 (if its proved)

BoGuu added a commit that referenced this pull request Dec 25, 2019
@BoGuu
Copy link
Member

BoGuu commented Dec 25, 2019

Reversing the order may address this, we'll see (9d4ee25)

@Vlieker
Copy link

Vlieker commented Mar 28, 2020

This doesn't work because gettingBought will be one before someone succesfully sells a house

Why not just add a bool that gets set to true after someone buys a house, and check for that bool before you change it to true

Also, use a spawn with a sleep to assign false to the bool, so the script doesn't stay open untill that's done

if (_action) then {
  if (gettingBought) exitWith { hint localize "STR_House_CoolDown"; };
  gettingBought = true;
[] spawn {
  sleep 5;
  gettingBought = false;
};

@BoGuu
Copy link
Member

BoGuu commented Mar 28, 2020

This doesn't work because gettingBought will be one before someone succesfully sells a house

Exactly, it's checking that it's greater than 1 for the exit condition

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.

[Money Bug] Sell a House / Garage Multiple times
3 participants