X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=tools%2Fquake3%2Fq3map2%2Fbspfile_abstract.c;h=cea3239af0a3bed3594b530c0a16820eff3a8a27;hb=4f135b96bbce8ccfdf461f68347daa514df87e59;hp=1dab66dbda76c4cf7a83b62b9d3816ab0d0e431d;hpb=e4287c28bb2dafedc81c66e63951d947cfbeb225;p=xonotic%2Fnetradiant.git diff --git a/tools/quake3/q3map2/bspfile_abstract.c b/tools/quake3/q3map2/bspfile_abstract.c index 1dab66db..cea3239a 100644 --- a/tools/quake3/q3map2/bspfile_abstract.c +++ b/tools/quake3/q3map2/bspfile_abstract.c @@ -831,7 +831,7 @@ vec_t FloatForKey( const entity_t *ent, const char *key ){ gets a 3-element vector value for an entity key */ -void GetVectorForKey( const entity_t *ent, const char *key, vec3_t vec ){ +qboolean GetVectorForKey( const entity_t *ent, const char *key, vec3_t vec ){ const char *k; double v1, v2, v3; @@ -845,6 +845,9 @@ void GetVectorForKey( const entity_t *ent, const char *key, vec3_t vec ){ vec[ 0 ] = v1; vec[ 1 ] = v2; vec[ 2 ] = v3; + + /* true if the key is found, false otherwise */ + return strlen( k ); }