From: Mario Date: Thu, 18 Jan 2018 13:10:23 +0000 (+1000) Subject: Undo last attempt X-Git-Tag: xonotic-v0.8.5~2384 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=5fe2baa088e06f07601064b0ef2ca5286dd9b4f4;p=xonotic%2Fxonotic-data.pk3dir.git Undo last attempt --- diff --git a/qcsrc/common/physics/player.qc b/qcsrc/common/physics/player.qc index ae8ffa3fe..20c580a85 100644 --- a/qcsrc/common/physics/player.qc +++ b/qcsrc/common/physics/player.qc @@ -7,20 +7,10 @@ #include #include "../triggers/trigger/viewloc.qh" -bool Physics_HasWord(string thelist, string theword) -{ - FOREACH_WORD(thelist, it == theword, - { - return true; - }); - - return false; -} - // client side physics bool Physics_Valid(string thecvar) { - return autocvar_g_physics_clientselect && thecvar != "" && thecvar && thecvar != "default" && Physics_HasWord(autocvar_g_physics_clientselect_options, thecvar); + return autocvar_g_physics_clientselect && thecvar != "" && thecvar && thecvar != "default" && strhasword(autocvar_g_physics_clientselect_options, thecvar); } float Physics_ClientOption(entity this, string option, float defaultval)