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

Post-release bugfixes #167

Merged
merged 2 commits into from
Aug 3, 2022
Merged

Post-release bugfixes #167

merged 2 commits into from
Aug 3, 2022

Conversation

ColinM9991
Copy link
Contributor

Fixes the housework_enter state whereby the random evaluation would fail due to the if statement not being wrapped. Also changed to use the alternative syntax for if-else values.

Updated the setCivilians and setVehicles functions to update CBA at a server level while storing the value. I've found that using "mission" doesn't broadcast the value to headless clients that are JIP.

Wrap the if statement to allow the random function to evaluate the day/night times.
to broadcast to headless clients.
@@ -5,7 +5,7 @@
private _isSleepingTime = _this call EFUNC(activities,isSleepingTime);

private _house = _this getVariable ["grad_civs_home", objNull];
_this setVariable [QGVAR(housework_time), random if (_isSleepingTime) then {GVAR(houseworkTimesNight)} else {GVAR(houseworkTimesDay)}];
Copy link
Member

@Fusselwurm Fusselwurm Aug 3, 2022

Choose a reason for hiding this comment

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

you really like that syntax, do you.

Seriously though, I was sure I had residents in my test scenario, it should've failed right away.

@Fusselwurm Fusselwurm merged commit 47f3a92 into gruppe-adler:main Aug 3, 2022
@ColinM9991 ColinM9991 deleted the bugfix/6.5.0-cleanup branch August 3, 2022 18:54
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.

2 participants