Age | Commit message (Collapse) | Author |
|
frosch.
|
|
Patch by frosch.
|
|
|
|
sprites using CTRL-B so one can get a better understanding of the used bounding boxes to fix the glitches that still exist. Patch by frosch.
Note that this is not completely glitch free, bounding boxes sometimes aren't removed properly. This is due to the fact that the bounding boxes sometimes are larger than the sprite, which causes a smaller part than the bounding box to be redrawn. This is NOT a bug, but a known implementation limit as we do not want to slow down normal games so the debug graphics are always 100% correct.
|
|
x/y/z-extent 0. Some NewGRFs need them. Patch by frosch.
|
|
boxes. It's not perfect yet, but a *very* good step into the right direction. Patch by frosch.
|
|
bounding boxes for some special cases (like tunnels and bridges). Patch by frosch.
|
|
box is equal to the max of another bounding box. Patch by frosch.
|
|
be true (unless you've got at least 3 bit errors and then you're screwed anyway). Patch by frosch.
|
|
an obscure variable name to something a little more meaningfull.
Heavily based of frosch's work (FS#1223)
|
|
subsystem. Patch by Progman.
|
|
state while being marked const.
-Codechange: do not brute force determine the first vehicle in the chain or previous vehicle, but do it by properly accounting the previous and first pointers when updating the next pointer. This gives a performance increase of about 15% when there are a lot of vehicles in the game.
|
|
|
|
transparent" code.
|
|
moving { to a new line.
|
|
Thanks of 45 degree patch for bringing it up
|
|
destination was not clamped to the map
|
|
|
|
were hidden/forgotten, which caused memory corruptions and that in caused all kinds of assertions to trigger.
|
|
API: blitter
-Codechange: introduced a hierachy of blitters to avoid a lot of code duplication
Note: this allows much easier adding other types of video-drivers, like OpenGL
|
|
code directly accesses the video-buffer
-Add: added NULL blitter and renderer, which are always used for -vnull
-Add: dedicated driver doesn't blit nor render by default. Can be overruled by user. (-D -b 8bpp-optimized)
-Remove: removed CTRL+D from win32, which is incompatible with above
-Add: extended screenshot support for PNG and BMP
-Codechange: remove all hardcoded 8bpp references and replace them with more dynamic ones
-Codechange: minor stuff in blitters
|
|
callbacks 11 and 17 for
road vehicles for those who prefer the technical explanation.
|
|
|
|
on) in some places.
|
|
with patch setting 'smooth_scroll'
|
|
area and what to do with it afterwards.
|
|
-Fix r9846: initialize the zoom level for 'screen', as assuming 0 is not correct
|
|
-Codechange: unified the blitter function so we have 1 function for all zoom-levels
-Codechange: make most of the label functions work with zoom-level instead of magic numbers and big switches per zoom-level
-Codechange: MakeXXXDirty() functions didn't take into account zoom-level, but just used the biggest possible value
-Codechange: simplified blitter functions to avoid code duplication
|
|
obvious reasons
-Codechange: introduced ZOOM_LVL_DETAIL to show/remove details
-Codechange: changed << and >> operator with ZoomLevel to a simple wrapper (that in theory also allows zoom-in besides the current zoom-out)
-Fix r9845: missed some int -> ZoomLevel
|
|
-Codechange: use predefined enums for viewport zoomlevels
|
|
|
|
|
|
corrections...
|
|
and into landscape.h, and add a few where they didn't exist.
|
|
with building transparency...
|
|
|
|
including a new toolbar, accessible from the map menu or Ctrl X. Patch by Wolf01.
|
|
Almost done. Yeah. I know, I've already said that...
|
|
|
|
|
|
files with the @file tag as well as a few general comments style
|
|
Remove {,u}intswap() and replace them by Swap()
|
|
|
|
VEH_Train is 0, VEH_Road is 1 and so on
This means that "v->type" can be used as array indexes instead of VehTypeToIndex() (or "v->type - VEH_Train/0x10 as the code still used in some places)
Surprisingly this can be done without changing the savegame format
|
|
|
|
Change the signature of Swap() to be less error prone, i.e. pass the variables to be swapped by reference instead of passing pointers to the variables.
Just do Swap(x, y) instead of Swap(&x, &y). This prevents accidents when the variables are pointers.
|
|
incorrect assumption of requested memory for sprites (smatz)
|
|
values.
This lets us increase the sprite width from 14 to up to 29 bits,
effectively nulling the old sprite limit. Table changes in next commit.
|
|
were not used anyway) and replace them by our SwapT implementation
|
|
macros by a simple template function max(), that requires two arguments of the same type. While I'm at it change a variable called "max" to "maxval" in a function that calls max().
|