Skip to content
This repository was archived by the owner on Aug 31, 2019. It is now read-only.

Add missing region tags to the snowy wars example #205

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 19 additions & 7 deletions src/examples/snowy_wars.haml
Original file line number Diff line number Diff line change
Expand Up @@ -46,21 +46,29 @@
<spawns>
<spawn team="red-team" kit="red">
<point yaw="-45">
<cylinder base="-619.5,11,259.5" height="0" radius="2"/> <!-- West -->
<region>
<cylinder base="-619.5,11,259.5" height="0" radius="2"/> <!-- West -->
</region>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This wouldn't be the correct way to fix this, the correct way would be to change the <point ...> to a <region ...> element.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it would be <regions ...>, right?

</point>
<point yaw="45">
<cylinder base="-571.5,11,259.5" height="0" radius="2"/> <!-- East -->
<region>
<cylinder base="-571.5,11,259.5" height="0" radius="2"/> <!-- East -->
</region>
</point>
</spawn>
<spawn team="blue-team" kit="blue">
<point yaw="-135">
<cylinder base="-619.5,11,349.5" height="0" radius="2"/> <!-- West -->
<region>
<cylinder base="-619.5,11,349.5" height="0" radius="2"/> <!-- West -->
</region>
</point>
<point yaw="135">
<cylinder base="-571.5,11,349.5" height="0" radius="2"/> <!-- East -->
<region>
<cylinder base="-571.5,11,349.5" height="0" radius="2"/> <!-- East -->
</region>
</point>
</spawn>
<default yaw="-90"><cuboid min="-544,13,302" max="-540,13,306"/></default>
<default yaw="-90"><region><cuboid min="-544,13,302" max="-540,13,306"/></region></default>
</spawns>

<br/>
Expand All @@ -69,10 +77,14 @@

<destroyables name="Monument" completion="100%" materials="obsidian">
<destroyable owner="blue">
<cuboid min="-596,10,361" max="-595,12,362"/>
<region>
<cuboid min="-596,10,361" max="-595,12,362"/>
</region>
</destroyable>
<destroyable owner="red">
<cuboid min="-596,10,247" max="-595,12,248"/>
<region>
<cuboid min="-596,10,247" max="-595,12,248"/>
</region>
</destroyable>
</destroyables>

Expand Down