Skip to content
Permalink
Branch: master
Commits on Feb 13, 2017
  1. Updated counting creatures to consistently ask for spec diggers.

    mefistotelis committed Feb 13, 2017
    Currently there are several workarounds for the list of special diggers.
    One is that only player-specific digger kind is in the digger list,
    another is that heroes have the digger list empty. This created
    functions which have the current workaround rules in one place.
  2. Log a warning when using conditional on bad player.

    mefistotelis committed Feb 13, 2017
    When IF or IF_* is used in map script on a player which has no dungeon,
    warning about the condition not working will be logged. This mostly
    concerns the neutral player.
  3. Updates to compile with GCC 6.3.0.

    mefistotelis committed Feb 13, 2017
    A few changes in C++ code, mostly one related to min/max macros.
  4. Rewritten combat score computation.

    mefistotelis committed Feb 13, 2017
    One more function rewritten. This one is used for selecting best enemy
    to fight.
  5. Fixed adding creature to player during map loading.

    mefistotelis committed Feb 13, 2017
    When starting new map, creatures were added to invalid
    dungeon linked list. This has been fixed to
    use primitive but effective direct dungeon assignment.
  6. Updated counting creatures for heroes.

    mefistotelis committed Feb 13, 2017
    Players without dungeon had invalid way of counting
    owned creatures. This has been fixed to use unowned
    creatures list in case given player has no Dungeon struct.
Commits on Feb 14, 2016
  1. Remade converting world coords to screen coords.

    mefistotelis committed Feb 14, 2016
    Rewritten a function which does coordinates conversion.
Commits on Feb 13, 2016
  1. Remade some more of rendering.

    mefistotelis committed Feb 13, 2016
    Rewritten function used for adding unlit triangles to drawlist.
  2. Remade a few rendring functions.

    mefistotelis committed Feb 13, 2016
    Rewritten 2 routines related to creation of drawlist during rendering.
  3. Remade adding creature to players list.

    mefistotelis committed Feb 13, 2016
    Rewritten a function which adds a creature to linked list within
    dungeon.
Commits on Feb 10, 2016
  1. Style and logging fixes in tunnelling.

    mefistotelis committed Feb 10, 2016
    Updated code style, naming and comments in tunelling code.
    Also improved some log messages, and commented places where
    reset was added to the tunnelling algorithm.
  2. Languages - Czech translation update.

    vejrous authored and mefistotelis committed Feb 10, 2016
    Translated more lines and used correct chars in existing translations.
Commits on Sep 23, 2015
  1. Remade drawing stripey line on screen.

    mefistotelis committed Sep 23, 2015
    Remade a function used to draw 2-color line with the strips
    moving.
    
    Also prepared an enum for small map states.
Commits on Sep 21, 2015
  1. Replaced moving during tunnelling to use Ariadne.

    mefistotelis committed Sep 21, 2015
    Using Ariadne system for these movements makes sure the creature won't
    get blocked by any standard terrain features.
    
    Also updated tunneller trail code to show the 5-item trail only if
    tunneller is on unrevealed slab (or revealed slabs, the real tunneller
    and real party members will be shown).
Commits on Sep 19, 2015
  1. Moved some values from Game struct into new MyPlayerInfo struct.

    mefistotelis committed Sep 19, 2015
    This provides more separation between variables which are part
    of the simulated world and variables which are valid for local
    player only.
    
    Also improved error handling in tunnelling code.
Commits on Sep 17, 2015
  1. Fixed a bug with division by 0 in sunnelling code.

    mefistotelis committed Sep 17, 2015
    This change forces a simplified path if only one coordinate changed.
    To make the simplified path work correctly on multiple collisions,
    the function which gets collided subtile was modified to return
    closest subtile, not the one first tested.
  2. Remade code related to drawlist creation before rendering.

    mefistotelis committed Sep 17, 2015
    Rewritten functions which add sprite elements to the drawlist.
Commits on Sep 16, 2015
  1. Fixed tunnelling optimization to no longer forget collisions.

    mefistotelis committed Sep 16, 2015
    One of the tunnelling optimizations had too broad conditions, and was
    triggered even in complex situations. This has been fixed so that
    full analysis is performed unless the movement is very small and only
    at subtile center.
    
    Also did some renaming as code readability improvement.
Commits on Sep 15, 2015
  1. Added statistics gathering for infinite loop errors.

    mefistotelis committed Sep 15, 2015
    Improved the error statistics gathering to include information about
    infinite loops detected while sweeping linked lists. The heavylog
    version will display such error information on screen, like it does
    with pathfinding issues.
Commits on Sep 14, 2015
  1. Fixed a wallhug mistake with not restoring creature position.

    mefistotelis committed Sep 14, 2015
    Creature position is often changed as a fast way to test any movement
    implications. A mistake was made while rewriting which allowed
    such modified position to be stored permanently. This lead to
    damaged mapwho chain.
    
    Also some style improvements were made with assigning position.
Commits on Sep 13, 2015
  1. Added automatic cut of things chain in case of infinite loop.

    mefistotelis committed Sep 13, 2015
    Some original DK code tends to break thing chains with invalid effects
    removal and creation. This commit adds a function which is able
    to cut such chain when infinite loop is detected. While the game
    is able to detect most infinite loops, it can't do it with all,
    so an invalid chain would sooner or later cause the game to hung.
    
    Cutting the chain may cause some things to be lost from the game,
    but it is still better than hung.
    
    Also some unifications in tunnelling wallhug code.
Commits on Sep 12, 2015
  1. Fixed recent bugs with tunneller trails and possession.

    mefistotelis committed Sep 12, 2015
    Fixed the bug where tunneller trails were never visible.
    Also fixed the bug where message window was visible in possession.
    Finally, did a few unifications to wallhug tunnelling code.
Commits on Sep 11, 2015
  1. Rewritten and unified some of pathfdinding in tunnelling.

    mefistotelis committed Sep 11, 2015
    Remade a big function, and moved chunks of code into other
    separate functions. Also used enums for some literals.
Commits on Sep 10, 2015
  1. Some rewrites and renming regarding tunnelling wallhug.

    mefistotelis committed Sep 10, 2015
    Remade two functions related to wallhug used for tunnelling.
    Also gave better names to some struct members and defined
    a new enumeration.
Commits on Sep 9, 2015
  1. Updated right panel initialization in possession.

    mefistotelis committed Sep 9, 2015
    The right panel support has been improved in possession.
    When exiting possession, the panel menus are now all cleared
    to avoid leaving multiple menus on.
    
    The panel menu has been also fixed for passenger mode.
Commits on Sep 8, 2015
  1. Thing lights creation unifications.

    mefistotelis committed Sep 8, 2015
    Created two functions for creating lights associated to things.
    Every light creation call was replaced by one of these function calls.
    Since this changed the way parameters are filled for some thing classes,
    modifications were also made to things config, effects config
    in particular.
    
    The commit also contains small unifications to possession and passenger
    control code.
Commits on Sep 7, 2015
  1. Languages - Another english speeches update.

    mefistotelis committed Sep 7, 2015
    Minor fixes only.
Commits on Sep 6, 2015
  1. Languages - English speeches script update.

    mefistotelis committed Sep 6, 2015
    Modified typos and grammatic mistakes in english speeches template.
    Updated speech translations to match the changes.
Commits on Sep 5, 2015
  1. Separated a function which returns first location around slab.

    mefistotelis committed Sep 5, 2015
    There was a problem where in some cases diggers would select
    a slab side far away as place to dig or reinforce. Now a function
    was made to be used for closest side selection.
Commits on Sep 4, 2015
  1. Added special case while stopping creatures on wall.

    mefistotelis committed Sep 4, 2015
    If it is not required to remove collision, height changes
    will not be removed from creature movements when they
    hit a wall. This allows them to slide up or down when they are
    blacked by a wall, and finally continue to follow the desired path.
Commits on Sep 3, 2015
  1. Unifications in powers casting and possession code.

    mefistotelis committed Sep 3, 2015
    Replaced one of possession checks with previously created
    generalized check for power castability.
    
    Updated the power castability checks to allow cheats - versions
    of the spell with loose cast restrictions. This allows the
    Direct Control cheat to possess enemies, also fixes other spell
    related cheats to be less restricted.
Commits on Sep 2, 2015
  1. Shifted speech numbers to start from 1.

    mefistotelis committed Sep 2, 2015
    The index values from PO/POT files now correspond to the
    values used in script file for playing each speech.
Commits on Sep 1, 2015
  1. Rewritten sliding and bouncing things when they hit a wall.

    mefistotelis committed Sep 1, 2015
    Remade two collision handlers - one for sliding on the wall,
    with the collided forces removed without reaction; second,
    for elastic reaction - with the force causing velocity in
    opposite direction.
    
    The new slider function seem to have fixed an issue with blocking
    flying creatures on a guardpost.
Commits on Aug 29, 2015
  1. Introduced a flag for if creature is player camera.

    mefistotelis committed Aug 29, 2015
    This fixes an issue with passenger control mode having
    the whole view covered with creature body.
    
    Also updated index values in speech scripts.
Commits on Aug 28, 2015
  1. Switched to SFX sources v3.

    mefistotelis committed Aug 28, 2015
    Updated the build to use SFX sources archive v3.
    The new sources have a bit different directory structure,
    and speech files now contain placefiller slots,
    to make it easier to insert new speeches later.
    
    Also little unifications were made is speeches playing code.
Older
You can’t perform that action at this time.