Introducing: the topology police

What do you want to see in Armagetron soon? Any new feature ideas? Let's ponder these ground breaking ideas...
User avatar
Z-Man
God & Project Admin
Posts: 11749
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Post by Z-Man »

That's indeed a possibility; normally, the grid should have been grown before by the appropriate call to Range(). I added a check for this rift condition in eHalfEdge::Check() and reactivated eGrid::Check(). At least in debug mode, this should catch us any such error BEFORE someone tries to lay a wall through it.
Another explanation would be the appearance of infinite numbers; a DrawLine( (+inf,0) ) could well be responsible for the error.
And hey! There is a unit test for the grid structure! I can't believe it. All hope is not lost :). It's in src/engine/test.cpp. I'll try to make it compile again.
User avatar
/dev/null
Shutout Match Winner
Posts: 819
Joined: Sat Sep 04, 2004 6:28 pm
Location: Chicago-ish

Post by /dev/null »

I do believe it is time for my happy ass to grab a CVS version of this and see the new changes. Im still running 2.6 on my server
Post Reply