From e3378432ffb6581eacf512b3a2bac13a5eebd565 Mon Sep 17 00:00:00 2001 From: Jonathan Date: Mon, 13 Sep 2021 10:24:14 -0400 Subject: [PATCH] Fix test_qbsp (needs proper fixes, this is just a temp one) --- qbsp/test_qbsp.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qbsp/test_qbsp.cc b/qbsp/test_qbsp.cc index d1898667..44a55b92 100644 --- a/qbsp/test_qbsp.cc +++ b/qbsp/test_qbsp.cc @@ -115,7 +115,7 @@ TEST(qbsp, duplicatePlanes) { EXPECT_EQ(0, worldspawn.numbrushes); EXPECT_EQ(6, worldspawn.mapbrush(0).numfaces); - brush_t *brush = LoadBrush(&worldspawn, &worldspawn.mapbrush(0), CONTENTS_SOLID, vec3_origin, rotation_t::none, 0); + brush_t *brush = LoadBrush(&worldspawn, &worldspawn.mapbrush(0), { CONTENTS_SOLID }, vec3_origin, rotation_t::none, 0); ASSERT_NE(nullptr, brush); EXPECT_EQ(6, Brush_NumFaces(brush)); FreeBrush(brush); @@ -141,10 +141,10 @@ static brush_t *load128x128x32Brush() mapentity_t worldspawn = LoadMap(map); Q_assert(1 == worldspawn.nummapbrushes); - brush_t *brush = LoadBrush(&worldspawn, &worldspawn.mapbrush(0), CONTENTS_SOLID, vec3_origin, rotation_t::none, 0); + brush_t *brush = LoadBrush(&worldspawn, &worldspawn.mapbrush(0), { CONTENTS_SOLID}, vec3_origin, rotation_t::none, 0); Q_assert(nullptr != brush); - brush->contents = CONTENTS_SOLID; + brush->contents = { CONTENTS_SOLID }; return brush; }