diff 7436839e3df26d85827dc0cb16b90264ab9d5e38 uncommitted --- a/d_net.c +++ b/d_net.c @@ -339,7 +339,8 @@ { dest = &netcmds[netconsole][nettics[netnode] % BACKUPTICS]; nettics[netnode]++; - *dest = *src; + memcpy(dest, src, sizeof(ticcmd_t)); + //*dest = *src; src++; } } @@ -421,8 +422,10 @@ resendto[i] = maketic - doomcom->extratics; - for (j = 0; j < netbuffer->numtics; j++) - netbuffer->cmds[j] = localcmds[(realstart + j) % BACKUPTICS]; + for (j = 0; j < netbuffer->numtics; j++){ + //netbuffer->cmds[j] = localcmds[(realstart + j) % BACKUPTICS]; + memcpy(&netbuffer->cmds[j], &localcmds[(realstart + j) % BACKUPTICS], sizeof(ticcmd_t)); + } if (remoteresend[i]) {