From: nyov Date: Sun, 16 Nov 2014 09:43:28 +0000 (+0000) Subject: remove playermodel display texts 'age' and 'weight' X-Git-Tag: xonotic-v0.8.0~145^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=010293006b6e9c3a0a2e2aeca0b7d4a392aebdb6;p=xonotic%2Fxonotic-data.pk3dir.git remove playermodel display texts 'age' and 'weight' (but not description, to keep the change simple) as per xonvote 186 closes xonotic/xonotic#37 --- diff --git a/qcsrc/menu/xonotic/playermodel.c b/qcsrc/menu/xonotic/playermodel.c index a1592de17..a09d85e0d 100644 --- a/qcsrc/menu/xonotic/playermodel.c +++ b/qcsrc/menu/xonotic/playermodel.c @@ -79,10 +79,12 @@ void XonoticPlayerModelSelector_configureXonoticPlayerModelSelector(entity me) get_model_parameters_desc = strcat(get_model_parameters_desc, "\n"); if(get_model_parameters_sex) get_model_parameters_desc = strcat(get_model_parameters_desc, sprintf("\nSex: %s", get_model_parameters_sex)); +#if 0 // (nyov) disabling the display of these has been voted on if(get_model_parameters_weight) get_model_parameters_desc = strcat(get_model_parameters_desc, sprintf("\nWeight: %g kg", get_model_parameters_weight)); if(get_model_parameters_age) get_model_parameters_desc = strcat(get_model_parameters_desc, sprintf("\nAge: %g", get_model_parameters_age)); +#endif while(substring(get_model_parameters_desc, -1, 1) == "\n") get_model_parameters_desc = substring(get_model_parameters_desc, 0, -2); bufstr_set(me.bufModels, BUFMODELS_COUNT*i+BUFMODELS_DESC, get_model_parameters_desc);