rocksndiamonds.git
6 years agofixed bug with variable defined as "long" that should be "int" in EM engine
Holger Schemel [Sun, 4 Feb 2018 20:58:31 +0000 (21:58 +0100)]
fixed bug with variable defined as "long" that should be "int" in EM engine

- this was apparently overseen when fixing the R'n'D code for 64-bit systems
  back in 2011 by replacing all "long" with "int" types (see commit 61c3da0)
- this bug was open to the public since version 3.3.1.0 was released in 2013
- this bug has potentially broken all EM engine tapes containing amoeba
- fixing this bug potentially breaks similar tapes between 2013 and now
- tapes created before 3.3.1.0 and broken due to this bug should work again

6 years agoversion number set to 4.0.1.2
Holger Schemel [Sat, 3 Feb 2018 01:19:17 +0000 (02:19 +0100)]
version number set to 4.0.1.2

6 years agofixed compiler warning about uninitialized local variable 4.0.1.1
Holger Schemel [Sat, 3 Feb 2018 00:17:04 +0000 (01:17 +0100)]
fixed compiler warning about uninitialized local variable

6 years agomoved handling game music with negative ID from mixer to helper function
Holger Schemel [Fri, 2 Feb 2018 23:58:16 +0000 (00:58 +0100)]
moved handling game music with negative ID from mixer to helper function

- this fixes checking next played game music if it has a negative music ID
- negative music IDs are used for (game) music files not specified in a GIC

6 years agoadded boundary checks for sound/music ID for some sound and music functions
Holger Schemel [Fri, 2 Feb 2018 23:51:48 +0000 (00:51 +0100)]
added boundary checks for sound/music ID for some sound and music functions

- this causes game music with negative music ID not being played anymore
- negative music IDs are used for (game) music files not specified in a GIC
- playing game music with negative ID will be fixed in the next commit

6 years agoadded function to get music filename by music ID
Holger Schemel [Fri, 2 Feb 2018 23:40:20 +0000 (00:40 +0100)]
added function to get music filename by music ID

- this does (still) not work correctly for negative music IDs
- negative music IDs are used for (game) music files not specified in a GIC
- handling negative music IDs will be fixed in the next commit

6 years agorenamed function 'WaitEventFiltered' to 'WaitValidEvent'
Holger Schemel [Wed, 31 Jan 2018 19:41:51 +0000 (20:41 +0100)]
renamed function 'WaitEventFiltered' to 'WaitValidEvent'

- to match function 'NextValidEvent'

6 years agochanged all event handling to always filter events
Holger Schemel [Wed, 31 Jan 2018 19:20:09 +0000 (20:20 +0100)]
changed all event handling to always filter events

6 years agomoved waiting for and filtering events to separate function
Holger Schemel [Wed, 31 Jan 2018 18:51:19 +0000 (19:51 +0100)]
moved waiting for and filtering events to separate function

6 years agorenamed function 'NextEvent' to 'WaitEvent'
Holger Schemel [Wed, 31 Jan 2018 18:41:43 +0000 (19:41 +0100)]
renamed function 'NextEvent' to 'WaitEvent'

- to make it clear that this function is waiting if no event is pending
- to match SDL function name

6 years agofixed bug with not redrawing level and author name when changing levels
Holger Schemel [Sun, 28 Jan 2018 22:37:41 +0000 (23:37 +0100)]
fixed bug with not redrawing level and author name when changing levels

6 years agocleanup of some function names ('Ext' functions without 'base' functions)
Holger Schemel [Sun, 28 Jan 2018 21:22:54 +0000 (22:22 +0100)]
cleanup of some function names ('Ext' functions without 'base' functions)

6 years agofixed bug with fading menu music on 'start game' if game music is the same
Holger Schemel [Sun, 28 Jan 2018 19:57:10 +0000 (20:57 +0100)]
fixed bug with fading menu music on 'start game' if game music is the same

6 years agoadded workaround for broken MIDI volume behaviour for Windows platform
Holger Schemel [Sat, 27 Jan 2018 19:58:00 +0000 (20:58 +0100)]
added workaround for broken MIDI volume behaviour for Windows platform

playing MIDI music is broken since Windows Vista, as it sets the volume
for MIDI music also for all other sounds and music, which cannot be set
back to normal unless playing MIDI music again with that desired volume
(more details: https://www.artsoft.org/forum/viewtopic.php?f=7&t=2253)

=> workaround 1: always play MIDI music with maximum volume
=> workaround 2: never fade MIDI music to lower volume, but just stop it

6 years agochanged fallback to default level set on errors only when run interactively
Holger Schemel [Thu, 11 Jan 2018 12:46:09 +0000 (13:46 +0100)]
changed fallback to default level set on errors only when run interactively

6 years agochanged loading of Supaplex demos to use function for adding action to tape
Holger Schemel [Wed, 10 Jan 2018 11:06:06 +0000 (12:06 +0100)]
changed loading of Supaplex demos to use function for adding action to tape

6 years agochanged code position of check if tape is full when adding actions
Holger Schemel [Wed, 10 Jan 2018 10:53:46 +0000 (11:53 +0100)]
changed code position of check if tape is full when adding actions

6 years agochanged code position of check when stopping tape recording
Holger Schemel [Wed, 10 Jan 2018 10:26:40 +0000 (11:26 +0100)]
changed code position of check when stopping tape recording

6 years agomoved code for adding action to tape to separate function
Holger Schemel [Wed, 10 Jan 2018 10:21:03 +0000 (11:21 +0100)]
moved code for adding action to tape to separate function

6 years agofixed potential off-by-one buffer overflow bug when recording tapes
Holger Schemel [Wed, 10 Jan 2018 09:41:23 +0000 (10:41 +0100)]
fixed potential off-by-one buffer overflow bug when recording tapes

6 years agofixed loading tapes that exceed the maximum allowed tape size
Holger Schemel [Wed, 10 Jan 2018 09:29:19 +0000 (10:29 +0100)]
fixed loading tapes that exceed the maximum allowed tape size

6 years agoadded space-efficient loading of Supaplex demos to internal tape structure
Holger Schemel [Mon, 8 Jan 2018 20:35:01 +0000 (21:35 +0100)]
added space-efficient loading of Supaplex demos to internal tape structure

6 years agoadded comment regarding required value for loading ultra-long MPX demo files
Holger Schemel [Mon, 8 Jan 2018 20:14:36 +0000 (21:14 +0100)]
added comment regarding required value for loading ultra-long MPX demo files

6 years agofixed bug which could cause saving tapes with a wrong level number filename
Holger Schemel [Mon, 8 Jan 2018 18:56:14 +0000 (19:56 +0100)]
fixed bug which could cause saving tapes with a wrong level number filename

6 years agoadded warning when loading Supaplex demo that exceeds maximum demo size
Holger Schemel [Mon, 8 Jan 2018 15:28:57 +0000 (16:28 +0100)]
added warning when loading Supaplex demo that exceeds maximum demo size

6 years agofixed potential crash bugs when converting between tapes and Supaplex demos
Holger Schemel [Mon, 8 Jan 2018 15:12:23 +0000 (16:12 +0100)]
fixed potential crash bugs when converting between tapes and Supaplex demos

6 years agoremoved storing 'end of demo' file marker in internal Supaplex demo buffer
Holger Schemel [Mon, 8 Jan 2018 14:52:12 +0000 (15:52 +0100)]
removed storing 'end of demo' file marker in internal Supaplex demo buffer

6 years agofixed cheat for loading solution tape for Supaplex style levels with demo
Holger Schemel [Wed, 3 Jan 2018 19:37:30 +0000 (20:37 +0100)]
fixed cheat for loading solution tape for Supaplex style levels with demo

6 years agochanged cheat for loading solution tape to quietly remove inserted tape
Holger Schemel [Thu, 7 Dec 2017 20:43:14 +0000 (21:43 +0100)]
changed cheat for loading solution tape to quietly remove inserted tape

6 years agofixed bug with global animations in mode 'MAINONLY' not being restarted after mode...
Holger Schemel [Mon, 4 Dec 2017 21:30:17 +0000 (22:30 +0100)]
fixed bug with global animations in mode 'MAINONLY' not being restarted after mode 'TYPENAME' (introduced with commit 2722043)

7 years agoadded fix to prevent Windows from complaining about program not responding
Holger Schemel [Wed, 15 Nov 2017 20:09:05 +0000 (21:09 +0100)]
added fix to prevent Windows from complaining about program not responding

7 years agofixed repeated creation of differently sized bitmaps between menu and game
Holger Schemel [Mon, 13 Nov 2017 22:49:36 +0000 (23:49 +0100)]
fixed repeated creation of differently sized bitmaps between menu and game

7 years agochanged handling mouse events only for topmost clickable animation
Holger Schemel [Mon, 30 Oct 2017 15:31:34 +0000 (16:31 +0100)]
changed handling mouse events only for topmost clickable animation

7 years agofixed bug with handling mouse events after clicking clickable animations
Holger Schemel [Mon, 30 Oct 2017 15:27:03 +0000 (16:27 +0100)]
fixed bug with handling mouse events after clicking clickable animations

7 years agoadded flag to (not) show scaling in title to default configuration settings
Holger Schemel [Tue, 14 Mar 2017 22:40:13 +0000 (23:40 +0100)]
added flag to (not) show scaling in title to default configuration settings

7 years agoadded custom version string to default program configuration settings
Holger Schemel [Tue, 14 Mar 2017 22:32:12 +0000 (23:32 +0100)]
added custom version string to default program configuration settings

7 years agoadded saving current level number when manually selecting different level
Holger Schemel [Tue, 14 Mar 2017 19:40:26 +0000 (20:40 +0100)]
added saving current level number when manually selecting different level

7 years agofixed problem with global animations being restarted if screen changes to same game...
Holger Schemel [Tue, 10 Oct 2017 21:25:18 +0000 (23:25 +0200)]
fixed problem with global animations being restarted if screen changes to same game mode (like navigation inside setup or levelset menu)

7 years agoadded enabling debug mode on Android when compiled with 'DEBUG' defined
Holger Schemel [Mon, 9 Oct 2017 19:34:41 +0000 (21:34 +0200)]
added enabling debug mode on Android when compiled with 'DEBUG' defined

7 years agofixed bug with cheat codes not working anymore after changing player name
Holger Schemel [Mon, 9 Oct 2017 19:32:38 +0000 (21:32 +0200)]
fixed bug with cheat codes not working anymore after changing player name

7 years agoadded setup debug option for displaying frames per second (FPS)
Holger Schemel [Sat, 7 Oct 2017 22:32:55 +0000 (00:32 +0200)]
added setup debug option for displaying frames per second (FPS)

7 years agochanged displaying FPS by cheat code ':fps' instead of always in debug mode
Holger Schemel [Sat, 7 Oct 2017 22:18:33 +0000 (00:18 +0200)]
changed displaying FPS by cheat code ':fps' instead of always in debug mode

7 years agoimproved displaying FPS (debug mode only)
Holger Schemel [Sat, 7 Oct 2017 21:56:10 +0000 (23:56 +0200)]
improved displaying FPS (debug mode only)

7 years agoadded function for getting current draw deactivation mask
Holger Schemel [Sat, 7 Oct 2017 21:02:22 +0000 (23:02 +0200)]
added function for getting current draw deactivation mask

7 years agofixed frame delay debug keys by only allowing 'normal' modifier keys
Holger Schemel [Sat, 7 Oct 2017 19:52:36 +0000 (21:52 +0200)]
fixed frame delay debug keys by only allowing 'normal' modifier keys

7 years agofixed bug with FPS display forcing redraw for every frame (debug mode only)
Holger Schemel [Sat, 7 Oct 2017 19:12:48 +0000 (21:12 +0200)]
fixed bug with FPS display forcing redraw for every frame (debug mode only)

7 years agochanged hiding setup options marked with '.hide' instead of setting to N/A
Holger Schemel [Sat, 7 Oct 2017 11:57:36 +0000 (13:57 +0200)]
changed hiding setup options marked with '.hide' instead of setting to N/A

7 years agoadded '.hide' suffix to default program config to hide (some) setup options
Holger Schemel [Fri, 6 Oct 2017 16:09:04 +0000 (18:09 +0200)]
added '.hide' suffix to default program config to hide (some) setup options

7 years agoadded abstraction for setting setup info from setup file hash
Holger Schemel [Thu, 5 Oct 2017 18:09:41 +0000 (20:09 +0200)]
added abstraction for setting setup info from setup file hash

7 years agoremoved old joystick calibration code
Holger Schemel [Wed, 4 Oct 2017 18:46:50 +0000 (20:46 +0200)]
removed old joystick calibration code

7 years agoversion number set to 4.0.1.1
Holger Schemel [Tue, 3 Oct 2017 07:51:23 +0000 (09:51 +0200)]
version number set to 4.0.1.1

7 years agochanged displaying debug messages only when running in debug mode 4.0.1.0
Holger Schemel [Sat, 30 Sep 2017 17:00:34 +0000 (19:00 +0200)]
changed displaying debug messages only when running in debug mode

7 years agochanged some messages from warning to debug level
Holger Schemel [Sat, 30 Sep 2017 16:59:40 +0000 (18:59 +0200)]
changed some messages from warning to debug level

7 years agodeactivated game controller debug messages
Holger Schemel [Fri, 29 Sep 2017 18:19:00 +0000 (20:19 +0200)]
deactivated game controller debug messages

7 years agoadded custom game controller mappings
Holger Schemel [Wed, 27 Sep 2017 21:28:30 +0000 (23:28 +0200)]
added custom game controller mappings

7 years agoadded game controller base mappings file
Holger Schemel [Wed, 27 Sep 2017 21:22:56 +0000 (23:22 +0200)]
added game controller base mappings file

7 years agofixed compiler warning by adding missing variable initialization (finally)
Holger Schemel [Wed, 27 Sep 2017 20:11:58 +0000 (22:11 +0200)]
fixed compiler warning by adding missing variable initialization (finally)

7 years agofixed compiler warning by adding missing variable initialization
Holger Schemel [Wed, 27 Sep 2017 20:04:28 +0000 (22:04 +0200)]
fixed compiler warning by adding missing variable initialization

7 years agofixed audio rwnd/ffwd keys for Amazon FireTV with SDL 2.0.6 release version
Holger Schemel [Tue, 26 Sep 2017 15:10:55 +0000 (17:10 +0200)]
fixed audio rwnd/ffwd keys for Amazon FireTV with SDL 2.0.6 release version

7 years agofixed assertion warning when building with SDL 2.0.6 for Android
Holger Schemel [Tue, 26 Sep 2017 15:08:59 +0000 (17:08 +0200)]
fixed assertion warning when building with SDL 2.0.6 for Android

7 years agoadded comment
Holger Schemel [Sat, 23 Sep 2017 21:34:32 +0000 (23:34 +0200)]
added comment

7 years agofixed and improved single step mode for all game engines
Holger Schemel [Sat, 23 Sep 2017 21:27:20 +0000 (23:27 +0200)]
fixed and improved single step mode for all game engines

7 years agofixed bug in single button handling causing broken tapes (EM engine)
Holger Schemel [Sat, 23 Sep 2017 20:11:25 +0000 (22:11 +0200)]
fixed bug in single button handling causing broken tapes (EM engine)

7 years agomoved game controller base mappings file to new 'conf' sub-directory
Holger Schemel [Tue, 12 Sep 2017 17:39:16 +0000 (19:39 +0200)]
moved game controller base mappings file to new 'conf' sub-directory

7 years agominor whitespace change
Holger Schemel [Fri, 8 Sep 2017 14:01:32 +0000 (16:01 +0200)]
minor whitespace change

7 years agoadded using single button for snap and drop when using native EM engine
Holger Schemel [Fri, 8 Sep 2017 14:00:53 +0000 (16:00 +0200)]
added using single button for snap and drop when using native EM engine

7 years agoversion number set to 4.0.1.0
Holger Schemel [Thu, 7 Sep 2017 22:22:07 +0000 (00:22 +0200)]
version number set to 4.0.1.0

7 years agofixed bug with TAS snap keys sometimes moving the player (EM engine only)
Holger Schemel [Thu, 7 Sep 2017 18:32:52 +0000 (20:32 +0200)]
fixed bug with TAS snap keys sometimes moving the player (EM engine only)

7 years agoadded leaving game controller configuration screen by using 'backspace' key
Holger Schemel [Tue, 25 Jul 2017 23:12:21 +0000 (01:12 +0200)]
added leaving game controller configuration screen by using 'backspace' key

7 years agoimproved customizability of game controller configuration screen
Holger Schemel [Tue, 25 Jul 2017 22:56:05 +0000 (00:56 +0200)]
improved customizability of game controller configuration screen

7 years agochanged joystick direction texts to more generic 'axis/pad' in setup menu
Holger Schemel [Tue, 25 Jul 2017 19:32:47 +0000 (21:32 +0200)]
changed joystick direction texts to more generic 'axis/pad' in setup menu

7 years agoadded comment
Holger Schemel [Tue, 25 Jul 2017 19:11:30 +0000 (21:11 +0200)]
added comment

7 years agoreplaced obsolete joystick calibration with game controller configuration
Holger Schemel [Tue, 25 Jul 2017 19:07:16 +0000 (21:07 +0200)]
replaced obsolete joystick calibration with game controller configuration

7 years agofixed accidentally starting joystick calibration by moving joystick axis
Holger Schemel [Mon, 17 Jul 2017 20:32:10 +0000 (22:32 +0200)]
fixed accidentally starting joystick calibration by moving joystick axis

7 years agoadded clearing joystick state to 'clear all input actions' event function
Holger Schemel [Mon, 17 Jul 2017 16:19:00 +0000 (18:19 +0200)]
added clearing joystick state to 'clear all input actions' event function

7 years agomoved clearing joystick state from closing to initializing joysticks
Holger Schemel [Mon, 17 Jul 2017 16:16:21 +0000 (18:16 +0200)]
moved clearing joystick state from closing to initializing joysticks

7 years agoadded support for 'select' key on certain devices (handled as 'return' key)
Holger Schemel [Sun, 16 Jul 2017 14:44:19 +0000 (16:44 +0200)]
added support for 'select' key on certain devices (handled as 'return' key)

7 years agoadded enabling/disabling virtual button overlay depending on input events
Holger Schemel [Sun, 16 Jul 2017 11:50:27 +0000 (13:50 +0200)]
added enabling/disabling virtual button overlay depending on input events

7 years agoadded support for special media buttons on Amazon Fire TV remote control
Holger Schemel [Tue, 11 Jul 2017 21:21:25 +0000 (23:21 +0200)]
added support for special media buttons on Amazon Fire TV remote control

7 years agofixed and added some range checks for joysticks
Holger Schemel [Tue, 11 Jul 2017 20:57:32 +0000 (22:57 +0200)]
fixed and added some range checks for joysticks

7 years agofixed joystick naming convention from file descriptor to joystick number
Holger Schemel [Mon, 3 Jul 2017 20:07:06 +0000 (22:07 +0200)]
fixed joystick naming convention from file descriptor to joystick number

7 years agofixed broken game controller event handling in joystick calibration
Holger Schemel [Mon, 3 Jul 2017 19:58:31 +0000 (21:58 +0200)]
fixed broken game controller event handling in joystick calibration

7 years agofixed joystick calibration for new game controller handling
Holger Schemel [Mon, 3 Jul 2017 19:55:44 +0000 (21:55 +0200)]
fixed joystick calibration for new game controller handling

7 years agoadded using global and personal game controller mapping files
Holger Schemel [Mon, 3 Jul 2017 18:52:19 +0000 (20:52 +0200)]
added using global and personal game controller mapping files

7 years agofixed bug with handling released game controller buttons
Holger Schemel [Sun, 2 Jul 2017 22:25:04 +0000 (00:25 +0200)]
fixed bug with handling released game controller buttons

7 years agoadded slightly larger delay after first joystick movement on menu screens
Holger Schemel [Sun, 2 Jul 2017 21:55:00 +0000 (23:55 +0200)]
added slightly larger delay after first joystick movement on menu screens

7 years agofixed indentation
Holger Schemel [Sun, 2 Jul 2017 21:24:56 +0000 (23:24 +0200)]
fixed indentation

7 years agoadded handling 'back' and 'start' buttons on game controllers
Holger Schemel [Sun, 2 Jul 2017 21:22:13 +0000 (23:22 +0200)]
added handling 'back' and 'start' buttons on game controllers

7 years agoadded hot-plug support for game controllers and joysticks
Holger Schemel [Fri, 30 Jun 2017 19:39:56 +0000 (21:39 +0200)]
added hot-plug support for game controllers and joysticks

7 years agoimproved support for game controllers and joysticks
Holger Schemel [Fri, 30 Jun 2017 18:25:05 +0000 (20:25 +0200)]
improved support for game controllers and joysticks

7 years agofixed potentially disastrous bug that could crash the program
Holger Schemel [Tue, 27 Jun 2017 20:40:25 +0000 (22:40 +0200)]
fixed potentially disastrous bug that could crash the program

7 years agochanged using 'external' app data directory on Android version, if possible
Holger Schemel [Tue, 27 Jun 2017 17:58:55 +0000 (19:58 +0200)]
changed using 'external' app data directory on Android version, if possible

7 years agoadded support for separate animations for 'old' (entered from main menu) and 'new...
Holger Schemel [Sat, 20 May 2017 18:46:02 +0000 (20:46 +0200)]
added support for separate animations for 'old' (entered from main menu) and 'new' (entered after successfully played game) scores screen

7 years agoadded debug output for scores directory used (global or private)
Holger Schemel [Sat, 20 May 2017 18:39:40 +0000 (20:39 +0200)]
added debug output for scores directory used (global or private)

7 years agofixed bug with broken tape display when pausing in ffwd/warp/etc. modes
Holger Schemel [Wed, 10 May 2017 19:46:47 +0000 (21:46 +0200)]
fixed bug with broken tape display when pausing in ffwd/warp/etc. modes

7 years agoincreased maximum number of global animations (and parts) from 8 to 32
Holger Schemel [Sat, 6 May 2017 19:02:52 +0000 (21:02 +0200)]
increased maximum number of global animations (and parts) from 8 to 32

7 years agofixed bug which could cause a crash due to an array index overflow
Holger Schemel [Sun, 30 Apr 2017 18:55:53 +0000 (20:55 +0200)]
fixed bug which could cause a crash due to an array index overflow

7 years agoadded 'position: last' for global animations to continue from last position
Holger Schemel [Mon, 24 Apr 2017 19:17:24 +0000 (21:17 +0200)]
added 'position: last' for global animations to continue from last position

7 years agoadded animation event by 'any' input (click anywhere, space, enter, escape)
Holger Schemel [Sun, 23 Apr 2017 17:55:42 +0000 (19:55 +0200)]
added animation event by 'any' input (click anywhere, space, enter, escape)

7 years agoadded using '.draw_masked' for global animation and toon graphics
Holger Schemel [Wed, 19 Apr 2017 19:05:27 +0000 (21:05 +0200)]
added using '.draw_masked' for global animation and toon graphics