From 7690f1a09931d9316403d3ecd1f157e6eef89a52 Mon Sep 17 00:00:00 2001 From: Steve Dudenhoeffer Date: Tue, 12 Jun 2007 15:59:10 +0000 Subject: [PATCH] Fixed the mirror system not working. --- dlls/hamsandwich/config_parser.cpp | 2 +- dlls/hamsandwich/include/ham_const.inc | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/dlls/hamsandwich/config_parser.cpp b/dlls/hamsandwich/config_parser.cpp index 340c43fd..f413d907 100644 --- a/dlls/hamsandwich/config_parser.cpp +++ b/dlls/hamsandwich/config_parser.cpp @@ -149,7 +149,7 @@ static void read_mirror(char *input) if (strcmp(dest, CurrentModName)==0) { - snprintf(CurrentModName, sizeof(CurrentModName)-1, "%s", dest); + snprintf(CurrentModName, sizeof(CurrentModName)-1, "%s", source); } } diff --git a/dlls/hamsandwich/include/ham_const.inc b/dlls/hamsandwich/include/ham_const.inc index 52ad8302..be23783c 100644 --- a/dlls/hamsandwich/include/ham_const.inc +++ b/dlls/hamsandwich/include/ham_const.inc @@ -106,7 +106,8 @@ enum Ham /** * Description: Usually called whenever an entity gets attacked by a hitscan (such as a gun) weapon. * Use the get/set tr2 natives in fakemeta to handle the traceresult data. - * Do not use a handle of 0 as a traceresult in execution, use get_tr_handle(0) instead. + * Do not use a handle of 0 as a traceresult in execution, use create_tr2() from Fakemeta + * to pass a custom handle instead. (Don't forget to free the handle when you're done.) * Forward params: function(this, idattacker, Float:damage, Float:direction[3], traceresult, damagebits) * Return type: None. * Execute params: ExecuteHam(Ham_TraceAttack, this, idattacker, Float:damage, Float:direction[3], tracehandle, damagebits);