| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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".
|
|
|
|
|
|
| |
Two constants divide to the same value no matter the scale, using random_var
was just a waste of CPU. What we want is to allow partial values a percentage
of the time.
|
|
Using these to get at random values is quite inefficient,
but it allows computing expected values for complicated
formulas like those used in fight.cc.
|