Fix DirectX builds
This commit is contained in:
parent
128b3f2b33
commit
a0d5deceff
2
Makefile
2
Makefile
|
@ -460,7 +460,7 @@ else
|
|||
CXX := emcc
|
||||
endif
|
||||
|
||||
LD := $(CC)
|
||||
LD := $(CXX)
|
||||
|
||||
#ifeq ($(DISCORDRPC),1)
|
||||
# LD := $(CXX)
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -117,6 +117,11 @@ void network_receive_spawn_objects(struct Packet* p) {
|
|||
}
|
||||
}
|
||||
|
||||
if (parentObj == NULL) {
|
||||
printf("ERROR: failed to attach to mario!\n");
|
||||
return;
|
||||
}
|
||||
|
||||
void* behavior = (void*)get_behavior_from_id(data.behaviorId);
|
||||
struct Object* o = spawn_object(parentObj, data.model, behavior);
|
||||
memcpy(o->rawData.asU32, data.rawData, sizeof(u32) * 80);
|
||||
|
|
Loading…
Reference in New Issue