Skip to content

Commit 268d1d7

Browse files
committed
"Fixed" compiler errors on linux for blade
They are caused by EnginePVSContext_t being incomplete
1 parent d569a47 commit 268d1d7

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

src/core/modules/engines/engines_server_wrap.cpp

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,7 @@ static void export_engine_server(scope _server)
324324
args("client_index", "name")
325325
)
326326

327+
#if !defined(ENGINE_BLADE)
327328
.def("reset_pvs",
328329
&IVEngineServer::ResetPVS,
329330
"Resets the potentially visible set. pvssize is the size in bytes of the buffer pointed to by pvs.",
@@ -335,6 +336,7 @@ static void export_engine_server(scope _server)
335336
"Merge the pvs bits into the current accumulated pvs based on the specified origin.",
336337
args("origin")
337338
)
339+
#endif
338340

339341
.def("set_area_portal_state",
340342
&IVEngineServer::SetAreaPortalState,
@@ -353,24 +355,28 @@ static void export_engine_server(scope _server)
353355
"Given a node number and the specified PVS, return with the node is in the PVS.",
354356
args("nodenum", "pvs", "vissize")
355357
)
356-
358+
359+
#if !defined(ENGINE_BLADE)
357360
.def("check_areas_connected",
358361
&IVEngineServer::CheckAreasConnected,
359362
"Using area bits, check whether area 1 flows into area 2 and vice versa (depends on portal state)",
360363
args("area1", "area2")
361364
)
365+
#endif
362366

363367
.def("get_area",
364368
&IVEngineServer::GetArea,
365369
"Given an origin, determine which area index the origin is within.",
366370
args("origin")
367371
)
368-
372+
373+
#if !defined(ENGINE_BLADE)
369374
.def("get_area_bits",
370375
&IVEngineServer::GetAreaBits,
371376
"Get area portal bit set.",
372377
args("area", "bits", "buflen")
373378
)
379+
#endif
374380

375381
.def("get_area_portal_plane",
376382
&IVEngineServer::GetAreaPortalPlane,
@@ -483,12 +489,13 @@ static void export_engine_server(scope _server)
483489
"Marks the material (vmt file) for consistency checking.",
484490
args("s")
485491
)
486-
492+
#if !defined(ENGINE_BLADE)
487493
.def("set_area_portal_states",
488494
&IVEngineServer::SetAreaPortalStates,
489495
"Mark some area portals as open/closed.",
490496
args("portal_numbers", "is_open", "portals")
491497
)
498+
#endif
492499

493500
.def("notify_edict_flags_change",
494501
&IVEngineServer::NotifyEdictFlagsChange,

0 commit comments

Comments
 (0)