Skip to content

Commit

Permalink
Fix small lag when browsing models
Browse files Browse the repository at this point in the history
  • Loading branch information
Alienmario committed Nov 8, 2022
1 parent f7cebbd commit 084576c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Binary file modified plugins/model_chooser_2020.smx
Binary file not shown.
4 changes: 2 additions & 2 deletions scripting/model_chooser_2020.sp
Original file line number Diff line number Diff line change
Expand Up @@ -772,7 +772,7 @@ void ParseModels(KeyValues kv)
if(duplicityChecker.SetString(model.name, "", false))
{
modelList.PushArray(model);
PrecacheModel(model.path);
PrecacheModel(model.path, true);
} else {
SetFailState("Duplicate model name: %s", model.name);
}
Expand Down Expand Up @@ -833,7 +833,7 @@ ArrayList ParseFileItems(KeyValues kv, bool download = false, bool precacheSound
}
files.PushString(path);
if(precacheSounds) {
PrecacheSound(path);
PrecacheSound(path, true);
}
if(download) {
AddFileToDownloadsTable(path);
Expand Down

0 comments on commit 084576c

Please sign in to comment.