------------------------------------------------------------------------ r3979 | helixhorned | 2013-08-04 13:37:51 -0700 (Sun, 04 Aug 2013) | 1 line Lunatic: disable printing debug messages for the preview build. BUILD_LUNATIC. ------------------------------------------------------------------------ r3977 | helixhorned | 2013-08-04 13:37:49 -0700 (Sun, 04 Aug 2013) | 9 lines Polymer: slightly more complete handling of (multi-tile) ART skies. - Use the proper tile sequence when multiple pskies are present in a map. However, there's still only *one* psky chosen at map load time. - Handle three horizfrac cases: * 0, psky always at same level wrt screen * 65536, psky horiz follows camera horiz (e.g. E4L9) * otherwise, fall back to default hard-coded parallax implemented as an angle fraction ------------------------------------------------------------------------ r3976 | helixhorned | 2013-08-04 13:37:48 -0700 (Sun, 04 Aug 2013) | 20 lines Clean up parallaxed sky functionality, part 2. - Rename sky_t members: yscale -> horizfrac, bits -> lognumtiles. - Add default sky (8 tiles, horizfrac=32768 (i.e. 1/2 the scene horiz), offsets all zero) and CLOUDYOCEAN sky (8 tiles, horizfrac=65536, offsets all zero) to multipsky[]. - Get rid of "psky_t g_psky", merely maintaining a g_pskyidx instead. Set it up at map load time so as to keep the behavior of the legacy per-map psky: the last sector index with a matching psky ceiling wins. - In mapstate_t, save g_pskyidx too, not (former) pskybits and pskyoffs[]. - Make on-map-load global psky setup consistent for the game and editor by factoring it out into common.c: G_SetupGlobalPsky(). - Remove a couple of useless initializations, add some static assertions. This commit is more likely to introduce subtle differences in behavior. Specifically, getpsky() now always returns the default sky properties instead of the global sky ones (but with all-zero offsets) when no match for a suiting multi-psky is found. This is only likely to affect the yscale/horizfrac of non-multi-pskies when a global non-default multi-psky has been set up. Bump BYTEVERSION again. ------------------------------------------------------------------------ r3975 | helixhorned | 2013-08-04 13:37:45 -0700 (Sun, 04 Aug 2013) | 16 lines Clean up parallaxed sky functionality, part 1. - Consolidate psky* arrays into a "typedef struct psky_t" "g_psky" and "multipsky[]". - Factor out getting parallaxed sky properties into getpsky(). - Condense initial multi-psky setup by memcpy'ing from multipsky[]. - New function: MultiPsky_TileToIdx(). - Add new define PSKYOFF_MAX and related consistency-checking assertions. - Lower MAXPSKYTILES to 8 to reflect current usage (was 256). - Game: make multi-pskies consider dynamically-remapped MOONSKY1, BIGORBIT1 and LA. (Not very useful as the editor will still only act for the static values -- 80, 84 and 89, respectively.) An attempt has been made to preserve behavior even in strange cases, so this commit is unlikely to introduce regressions. Because of point 6, BYTEVERSION had to be bumped. ------------------------------------------------------------------------ r3974 | helixhorned | 2013-08-04 13:37:40 -0700 (Sun, 04 Aug 2013) | 1 line Lunatic: sanity-check some arguments passed to con.action(). ------------------------------------------------------------------------