Skip to content

Commit 0388c0f

Browse files
fix
1 parent 4fc1ef5 commit 0388c0f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/economy/economy.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1871,15 +1871,15 @@ void update_pop_consumption(
18711871

18721872
// subsistence gives free "level of consumption"
18731873

1874-
auto base_shift = 1.f / 200.f;
1874+
auto base_shift = ve::fp_vector{ 1.f / 200.f };
18751875

18761876
ve::fp_vector shift_life = ve::select(
18771877
satisfaction_life_money + qol_from_subsistence > 0.9f,
18781878
base_shift,
18791879
ve::select(
18801880
satisfaction_life_money + qol_from_subsistence < 0.7f,
18811881
-base_shift,
1882-
0.f
1882+
ve::fp_vector{ 0.f }
18831883
)
18841884
);
18851885
ve::fp_vector shift_everyday = ve::select(
@@ -1888,7 +1888,7 @@ void update_pop_consumption(
18881888
ve::select(
18891889
satisfaction_everyday_money < 0.7f,
18901890
-base_shift,
1891-
0.f
1891+
ve::fp_vector{ 0.f }
18921892
)
18931893
);
18941894
ve::fp_vector shift_luxury = ve::select(
@@ -1897,7 +1897,7 @@ void update_pop_consumption(
18971897
ve::select(
18981898
satisfaction_luxury_money < 0.7f,
18991899
-base_shift,
1900-
0.f
1900+
ve::fp_vector{ 0.f }
19011901
)
19021902
);
19031903

0 commit comments

Comments
 (0)