]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/command/cmd.qc
GetResourceAmount --> GetResource, SetResourceAmount --> SetResource
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / command / cmd.qc
index aec9957c7b16d11cfd02010ee0b074e7697941ae..1395986b97bd3a463ab33c16e8508da381f992ca 100644 (file)
@@ -285,7 +285,7 @@ void ClientCommand_kill(entity caller, int request)
                        if(IS_SPEC(caller) || IS_OBSERVER(caller))
                                return; // no point warning about this, command does nothing
 
-                       if(GetResourceAmount(caller, RES_HEALTH) <= 0)
+                       if(GetResource(caller, RES_HEALTH) <= 0)
                        {
                                sprint(caller, "Can't die - you are already dead!\n");
                                return;