Age | Commit message (Collapse) | Author |
|
|
|
scope, CSE for readability, DeMorgan, if cascades -> switch, whitespace, parentheses, bracing, misc.
|
|
its own
|
|
use IndustryGfx type instead of uint
|
|
|
|
|
|
|
|
graphics type.
|
|
|
|
create/use helper macro/enum for recoloring scheme
|
|
shiny new functions and mark some strange constructs with XXX
|
|
IsTunnel(), which just checks for a tunnel, but not the tile type as IsTunnelTile() does
|
|
generic byte and don't fill arbitrary data into inappropriate types
|
|
|
|
- Don't treat non-booleans as booleans
- Reduce variable scope
- Bracing
- Use DeMorgan's law to make conditionals easier to read
- if cascade -> switch
- Replace some magic numbers by symbolic names
- Avoid assignments within other statements
|
|
adding a TO_LE32X() macro next to TO_BE32X(). The 'X' signifies them as macros and not-inline functions so they can be used in variable declarations.
|
|
See tree.h for details
|
|
alignment issues (thanks Tron for the help)
|
|
and density of clear tiles with symbolic names and accessors.
See clear.h for details
|
|
|
|
|
|
"overflowed" its panel in the tropical climate (qball should be satisfied now)
|
|
their actual use, and add "Close Window" tooltip where missing.
|
|
|
|
comments, excess empty lines, minor other changes
nothing spectacular, just some stuff, which piled up
|
|
and get rid of some magic numbers
|
|
|
|
|
|
|
|
|
|
|
|
structs, this doesn't change the saved format for now. It's a stepping stone for further changes.
|
|
|
|
- CodeChange: change MapSizeX() - 1 to MapMaxX() in the smallmap drawing code
|
|
into trunk. This also implicitely fixes the bug where the game would crash in certain resolutions with certain minimap masks when dragged partly outside the game-area.
|
|
some bogus reads of _map_owner
|
|
|
|
what you wanted to see if one of the windows (viewport or main) was zoomed out. Also fix the undisabled-zoom-in button upon creation.
|
|
|
|
cascade -> switch
|
|
mini-map - this should improve readability a bit
|
|
(returning a Sprite*) and GetNonSprite() for "sprites" of type 0xFF (returning byte*)
|
|
own and use SpriteID as parameter type where appropriate
|
|
[GS]etTileType() instead of plain int.
This makes it necessary to rename TileType() to GetTileType() because a type and a function may not share the same name.
|
|
single tile from map.h and put them into a seperate file tile.h
|
|
appropriate warning flags in the Makefile
|
|
|
|
Replace some direct references to _map_type_and_height with TileHeight()/IsTileType()
|
|
them into inline functions and add some asserts
|
|
the latter into inline functions names Tile[XY]
|