Critical bugfix

- Fixed a critical bug in g_spawn.c G_ParseField
This commit is contained in:
Walter Julius Hennecke 2011-12-12 19:34:23 +01:00
parent 5721a7820a
commit 836078764e
3 changed files with 6 additions and 6 deletions

View file

@ -10,7 +10,7 @@
// because games can change separately from the main system version, we need a
// second version that must match between game and cgame
#define RPGX_VERSION "2.2 Beta 8.4.7 wc1"
#define RPGX_VERSION "2.2 Beta wc121211a"
#define RPGX_COMPILEDATE "20/05/11"
#define RPGX_COMPILEDBY "GSIO01"
//const char GAME_VERSION[] = strcat("RPG-X v",RPGX_VERSION);

View file

@ -598,10 +598,10 @@ qboolean G_ParseField( const char *key, const char *value, gentity_t *ent ) {
break;
case F_VECTOR4:
i = sscanf (value, "%f %f %f %f", &vec4[0], &vec[1], &vec[2], &vec[3]);
((float *)(b+f->ofs))[0] = vec[0];
((float *)(b+f->ofs))[0] = vec[1];
((float *)(b+f->ofs))[0] = vec[2];
((float *)(b+f->ofs))[0] = vec[3];
((float *)(b+f->ofs))[0] = vec4[0];
((float *)(b+f->ofs))[0] = vec4[1];
((float *)(b+f->ofs))[0] = vec4[2];
((float *)(b+f->ofs))[0] = vec4[3];
break;
case F_INT:
*(int *)(b+f->ofs) = atoi(value);

View file

@ -1,5 +1,5 @@
// Current version of holomatch game
#define Q3_VERSION "RPG-X v2.2 Beta 8.4.7 wc1"
#define Q3_VERSION "RPG-X v2.2 wc121211a"
// end