| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
It turns out it was only an implementation detail of radius_iterator.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
circle_def can now be replaced by just a center + radius instead of a
complex object.
|
|
|
|
| |
(I wonder if this saves even one kilobyte?)
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
I had to rename distance() (in coord.h) to distance2() because it conflicts
with the STL function to compare 2 iterators. Not a bad change given how it
returns the square of the distance anyway.
I also had to rename the message global variable (in message.cc) to buffer.
I tried to fix and improve the coding style has much as I could, but I
probably missed a few given how huge and tedious it is.
I also didn't touch crawl-gdb.py, and the stuff in prebuilt, rltiles/tool
and util/levcomp.*, because I have no clue about those.
|
|
|
|
| |
For way too paranoid and underinclusive values of "simple".
|
| |
|
|
|
|
|
|
|
| |
Having both it and LOS_RADIUS is misleading, especially as they're
arbitrarily used. This distinction doesn't make sense anyway, as any
LOS changes need to be done at runtime, only the max matters during
compilation.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
It's now tracking whether to check map_bounds explicitly; this is
enabled or not depending on the used constructor.
Fixes issue #1191 (crash on Shoals 5 when drawing water tiles near
(0,0), where (0,0) had been magically detected.
I'm not confident this doesn't cause other issues, however, since
it seems too easy.
|
|
|
|
| |
Signed-off-by: Steven Noonan <steven@uplinklabs.net>
|
|
|
|
|
| |
(you don't need to cast an X* to a void* and you don't need to cast
arguments to math.h functions such as sqrt.)
|
|
|
|
| |
Should fix a a Visual Studio compile error (felirx).
|
| |
|
|
|
|
|
|
| |
circle_def::contains was disregarding the los_radius field.
This led to lantern of shadows not working (reported by
peten on ##crawl).
|
| |
|
|
|
|
|
| |
circle_def now has two modes, depending on whether origin is set.
This is a little ugly.
|
|
|
|
|
| |
Also define rectangle RECT_MAP_BOUNDS and
add containment check to rect_def.
|
| |
|
| |
|
|
circle_def unifies the shapes that a radius_iterator can iterate
over. It's meant to replace bounds_func in losparam.h and eventually
provide a base for radius_iterator.
|