blob: 95516c6109f84335120b2982f2d73c50bf1de7f0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#define bow_sym "gendat"
#include <bow/info.h>
#include <flux.h>
#include <zap/mem.h>
#include <string.h>
void bow_gendat(bow_playdat * const playdatptr) {
bow_log("generating data");
bow_playdat playdat;
memcpy(&playdat,playdatptr,sizeof (playdat));
playdat.ship.mass = bow_shipmass(playdat.ship.shiptyp);
memcpy(playdatptr,&playdat,sizeof (playdat));
}
|