Replace 2 memcpys with assignments

git-svn-id: https://svn.eduke32.com/eduke32@6231 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2017-06-23 03:58:48 +00:00
parent a3fbe4c542
commit dac7679633

View file

@ -7594,7 +7594,6 @@ static uspritetype tsprite_s[MAXSPRITESONSCREEN];
int32_t preinitengine(void)
{
char *e;
if (initsystem()) Bexit(9);
makeasmwriteable();
@ -10146,7 +10145,7 @@ int32_t setsprite(int16_t spritenum, const vec3_t *newpos)
int16_t tempsectnum = sprite[spritenum].sectnum;
if ((void const *) newpos != (void *) &sprite[spritenum])
Bmemcpy(&sprite[spritenum], newpos, sizeof(vec3_t));
*(vec3_t *) &sprite[spritenum] = *newpos;
updatesector(newpos->x,newpos->y,&tempsectnum);
@ -10163,7 +10162,7 @@ int32_t setspritez(int16_t spritenum, const vec3_t *newpos)
int16_t tempsectnum = sprite[spritenum].sectnum;
if ((void const *)newpos != (void *)&sprite[spritenum])
Bmemcpy(&sprite[spritenum], newpos, sizeof(vec3_t));
*(vec3_t *) &sprite[spritenum] = *newpos;
updatesectorz(newpos->x,newpos->y,newpos->z,&tempsectnum);