Permalink
Browse files

Fixing Demoman -> Demo when building tf2 item database

1 parent 7529cef commit e33bef850d1cefef1739ec631e989595b66e0987 @Smashman committed Jul 13, 2017
Showing with 4 additions and 1 deletion.
  1. +4 −1 app/scripts/scripts.py
View
@@ -127,7 +127,10 @@ def update_tf2_items():
if class_model is None:
basename = model_player_per_class.get("basename")
if basename:
- class_model = basename.replace("%s", tf2_class)
+ basename_class = tf2_class
+ if basename_class == "demoman":
+ basename_class = "demo"
+ class_model = basename.replace("%s", basename_class)
elif model_player:
#class_model = model_player
continue

0 comments on commit e33bef8

Please sign in to comment.