| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Also add a few previously indirect includes.
|
|
|
|
|
|
|
| |
There's a conflict between you.see_cell_no_trans and
los.find_ray with default argument opc_solid. As a quick fix,
make los.find_ray use opc_no_trans, but this doesn't increase
the general usefulness of los.find_ray...
|
| |
|
|
|
|
| |
Disabling the LOS lua bindings while ray.h changes.
|
|
|
|
| |
New: colour.cc, coord.cc, coordit.cc, random.cc, rng.cc.
|
| |
|
|
|
|
|
|
|
|
| |
cluautil.cc should eventually contain all of the functions
for passing objects from and to lua, at least the shared
ones.
Also cut down on clua.cc include list.
|
|
|
|
| |
To avoid name clashes, rename dlua libs from *_lib to *_dlib.
|
|
|
|
|
| |
Move lua library headers to separate l_libs.h, fixing another
compilation error...
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
During precomputation, we store the minimal cellrays by target
and sort them according to niceness.
find_ray now simply picks the first non-blocked ray to a
target, which means looping through the 10 or so minimal
cellrays with that target -- this should be a lot more
efficient. (An extended findray test went from 150s to 40s
(debug) and 40s to 26s (profile)).
The interface to find_ray has changed: cycle_dir=-1,0,1 was
changed to cyle=false/true since we never cycle in the other
direction anyway. find_shortest was removed: all rays to a
target had the same length all along, but now we also return
the straightest one automatically.
The change also eliminates the duplicate corner-cutting code
between ray_def::advance and find_ray as imbalance calculation
now relies on ray_def::advance.
|
|
|
|
|
|
|
|
|
|
| |
There is now a separate fallback_ray() that needs to be called
explicitly. I've manually converted uses of find_ray with
allow_fallback == true.
find_ray with allow_fallback set always returned true, yet there
were a number of places that used the return value, in particular
in directn.cc. I'll check these later.
|
|
|
|
|
|
|
| |
This was caused by an incorrectly inverted test.
Also update the find_ray binding so the findray test would have
found the bug.
|
|
|
|
|
| |
Now only targets cells that are not blocked by transparent walls
etc. find_ray can't currently check for real visibility.
|
|
Extra file to keep luadgn.cc from growing even larger.
|