From 02cf58fc8728ec85941840ab4d25d089e6bd8fbc Mon Sep 17 00:00:00 2001 From: Eric Wasylishen Date: Tue, 9 Apr 2024 22:49:01 -0600 Subject: [PATCH] tests: add test map for #417 --- testmaps/q2_region_origin_leak.map | 97 ++++++++++++++++++++++++++++++ 1 file changed, 97 insertions(+) create mode 100644 testmaps/q2_region_origin_leak.map diff --git a/testmaps/q2_region_origin_leak.map b/testmaps/q2_region_origin_leak.map new file mode 100644 index 00000000..af8b940a --- /dev/null +++ b/testmaps/q2_region_origin_leak.map @@ -0,0 +1,97 @@ +// Game: Quake 2 +// Format: Quake2 +// entity 0 +{ +"classname" "worldspawn" +"_tb_textures" "textures;textures/dark_1;textures/unused" +// brush 0 +{ +( 208 -128 384 ) ( 208 -544 384 ) ( 208 -128 64 ) dark_1/wall74 0 0 0 1 1 +( 224 -544 64 ) ( 208 -544 64 ) ( 224 -544 384 ) dark_1/wall74 0 0 0 1 1 +( 224 -128 64 ) ( 208 -128 64 ) ( 224 -544 64 ) dark_1/wall74 0 0 0 1 1 +( 224 -544 384 ) ( 208 -544 384 ) ( 224 -128 384 ) dark_1/wall74 0 0 0 1 1 +( 224 -128 384 ) ( 208 -128 384 ) ( 224 -128 64 ) dark_1/wall74 0 0 0 1 1 +( 224 -544 384 ) ( 224 -128 384 ) ( 224 -544 64 ) dark_1/wall74 0 0 0 1 1 +} +// brush 1 +{ +( -96 -544 64 ) ( -96 -128 64 ) ( -96 -544 384 ) dark_1/wall74 0 0 0 1 1 +( -96 -544 384 ) ( -80 -544 384 ) ( -96 -544 64 ) dark_1/wall74 0 0 0 1 1 +( -96 -544 64 ) ( -80 -544 64 ) ( -96 -128 64 ) dark_1/wall74 0 0 0 1 1 +( -96 -128 384 ) ( -80 -128 384 ) ( -96 -544 384 ) dark_1/wall74 0 0 0 1 1 +( -96 -128 64 ) ( -80 -128 64 ) ( -96 -128 384 ) dark_1/wall74 0 0 0 1 1 +( -80 -544 64 ) ( -80 -544 384 ) ( -80 -128 64 ) dark_1/wall74 0 0 0 1 1 +} +// brush 2 +{ +( -80 -128 384 ) ( -80 -144 384 ) ( -80 -128 64 ) dark_1/wall74 0 0 0 1 1 +( 208 -144 384 ) ( 208 -144 64 ) ( -80 -144 384 ) dark_1/wall74 0 0 0 1 1 +( -80 -128 64 ) ( -80 -144 64 ) ( 208 -128 64 ) dark_1/wall74 0 0 0 1 1 +( 208 -128 384 ) ( 208 -144 384 ) ( -80 -128 384 ) dark_1/wall74 0 0 0 1 1 +( 208 -128 384 ) ( -80 -128 384 ) ( 208 -128 64 ) dark_1/wall74 0 0 0 1 1 +( 208 -128 64 ) ( 208 -144 64 ) ( 208 -128 384 ) dark_1/wall74 0 0 0 1 1 +} +// brush 3 +{ +( -80 -544 64 ) ( -80 -528 64 ) ( -80 -544 384 ) dark_1/wall74 0 0 0 1 1 +( 208 -544 64 ) ( -80 -544 64 ) ( 208 -544 384 ) dark_1/wall74 0 0 0 1 1 +( 208 -544 64 ) ( 208 -528 64 ) ( -80 -544 64 ) dark_1/wall74 0 0 0 1 1 +( -80 -544 384 ) ( -80 -528 384 ) ( 208 -544 384 ) dark_1/wall74 0 0 0 1 1 +( -80 -528 64 ) ( 208 -528 64 ) ( -80 -528 384 ) dark_1/wall74 0 0 0 1 1 +( 208 -544 384 ) ( 208 -528 384 ) ( 208 -544 64 ) dark_1/wall74 0 0 0 1 1 +} +// brush 4 +{ +( -80 -528 384 ) ( -80 -528 368 ) ( -80 -144 384 ) sky1 0 0 0 1 1 +( 208 -528 384 ) ( 208 -528 368 ) ( -80 -528 384 ) sky1 0 0 0 1 1 +( 208 -144 368 ) ( -80 -144 368 ) ( 208 -528 368 ) sky1 0 0 0 1 1 +( 208 -144 384 ) ( 208 -528 384 ) ( -80 -144 384 ) sky1 0 0 0 1 1 +( -80 -144 384 ) ( -80 -144 368 ) ( 208 -144 384 ) sky1 0 0 0 1 1 +( 208 -144 384 ) ( 208 -144 368 ) ( 208 -528 384 ) sky1 0 0 0 1 1 +} +// brush 5 +{ +( -80 -144 64 ) ( -80 -144 80 ) ( -80 -528 64 ) dark_1/wall74 0 0 0 1 1 +( -80 -528 64 ) ( -80 -528 80 ) ( 208 -528 64 ) dark_1/wall74 0 0 0 1 1 +( -80 -144 64 ) ( -80 -528 64 ) ( 208 -144 64 ) dark_1/wall74 0 0 0 1 1 +( -80 -528 80 ) ( -80 -144 80 ) ( 208 -528 80 ) dark_1/wall74 0 0 0 1 1 +( 208 -144 64 ) ( 208 -144 80 ) ( -80 -144 64 ) dark_1/wall74 0 0 0 1 1 +( 208 -528 64 ) ( 208 -528 80 ) ( 208 -144 64 ) dark_1/wall74 0 0 0 1 1 +} +// brush 6 +{ +( -208 -16 384 ) ( -208 -15 384 ) ( -208 -16 385 ) region 0 0 0 1 1 +( -208 -736 384 ) ( -208 -736 385 ) ( -207 -736 384 ) region 0 0 0 1 1 +( -208 -16 -1216 ) ( -207 -16 -1216 ) ( -208 -15 -1216 ) region 0 0 0 1 1 +( 16 224 400 ) ( 16 225 400 ) ( 17 224 400 ) region 0 0 0 1 1 +( 16 224 400 ) ( 17 224 400 ) ( 16 224 401 ) region 0 0 0 1 1 +( 512 224 400 ) ( 512 224 401 ) ( 512 225 400 ) region 0 0 0 1 1 +} +} +// entity 1 +{ +"classname" "func_door_rotating" +// brush 0 +{ +( -480 80 -16 ) ( -480 81 -16 ) ( -480 80 -15 ) dark_1/wall72 0 0 0 1 1 +( -480 80 -16 ) ( -480 80 -15 ) ( -479 80 -16 ) dark_1/wall72 0 0 0 1 1 +( -480 80 -16 ) ( -479 80 -16 ) ( -480 81 -16 ) dark_1/wall72 0 0 0 1 1 +( -352 208 16 ) ( -352 209 16 ) ( -351 208 16 ) dark_1/wall72 0 0 0 1 1 +( -352 208 16 ) ( -351 208 16 ) ( -352 208 17 ) dark_1/wall72 0 0 0 1 1 +( -352 208 16 ) ( -352 208 17 ) ( -352 209 16 ) dark_1/wall72 0 0 0 1 1 +} +// brush 1 +{ +( -480 176 16 ) ( -480 177 16 ) ( -480 176 17 ) unused/origin 0 0 0 1 1 +( -480 176 16 ) ( -480 176 17 ) ( -479 176 16 ) unused/origin 0 0 0 1 1 +( -480 176 -80 ) ( -479 176 -80 ) ( -480 177 -80 ) unused/origin 0 0 0 1 1 +( -448 208 32 ) ( -448 209 32 ) ( -447 208 32 ) unused/origin 0 0 0 1 1 +( -448 208 32 ) ( -447 208 32 ) ( -448 208 33 ) unused/origin 0 0 0 1 1 +( -448 208 32 ) ( -448 208 33 ) ( -448 209 32 ) unused/origin 0 0 0 1 1 +} +} +// entity 2 +{ +"classname" "info_player_start" +"origin" "-16 -384 104" +}