summaryrefslogtreecommitdiff
path: root/bowshock/source/bs/gendat.c
blob: 47c131ff93174161f9e5fad5fa1df55042f32a95 (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 <zap/mem.h>

#include <string.h>

void bow_gendat(bow_playdat * const playdatptr) {
	bow_log("generating data");
	bow_playdat playdat;
	zap_cp(&playdat,playdatptr,sizeof (playdat));
	playdat.ship.typ  = bow_objtyp_ship;
	playdat.ship.mass = bow_shipmass(playdat.ship.shiptyp);
	zap_cp(playdatptr,&playdat,sizeof (playdat));
}