sooome
This commit is contained in:
@@ -211,7 +211,7 @@ void UcppFuncLibrary::getRange(double value, double minMult, double maxMult, dou
|
||||
bValue = value;
|
||||
}
|
||||
|
||||
void UcppFuncLibrary::updateFilterList(TArray<FcppflatStruct> flats, int floorMin, int floorMax, float sqMin, float sqMax, int priceMin, int priceMax, TArray<bool> houses, TArray<bool> sections, TArray<bool> rooms, int sortType, TArray<FcppflatStruct>& filtered)
|
||||
void UcppFuncLibrary::updateFilterList(TArray<FcppflatStruct> flats, int floorMin, int floorMax, float sqMin, float sqMax, int priceMin, int priceMax, TArray<bool> houses, TArray<bool> sections, TArray<bool> rooms, int sortType, bool onlyAvailable, TArray<FcppflatStruct>& filtered, int& count)
|
||||
{
|
||||
TArray<int> tempfloor, tempprice;
|
||||
TArray<float> tempsq;
|
||||
@@ -221,13 +221,15 @@ void UcppFuncLibrary::updateFilterList(TArray<FcppflatStruct> flats, int floorMi
|
||||
&& inRange(flat.Square, sqMin, sqMax)
|
||||
&& boolGet(houses, flat.House)
|
||||
&& boolGet(sections, flat.Section)
|
||||
&& boolGet(rooms, flat.Rooms)) {
|
||||
&& boolGet(rooms, flat.Rooms)
|
||||
&& (onlyAvailable?flat.available:true)) {
|
||||
filtered.Add(flat);
|
||||
tempfloor.Add(flat.Floor);
|
||||
tempprice.Add(flat.Price);
|
||||
tempsq.Add(flat.Square);
|
||||
}
|
||||
}
|
||||
count = filtered.Num();
|
||||
if (tempfloor.Num() > 1) {
|
||||
switch (sortType) {
|
||||
case 0:
|
||||
|
||||
Reference in New Issue
Block a user