Commit Graph
100 Commits
Author SHA1 Message Date
Frank Zago f92b6fc2b6 Depending on the distros, ffmpeg headers aren't always installed in the same directory. Fix from Szpak. 2009-08-29 15:52:29 +00:00
Frank Zago 90c31d5cd5 Typo. 2009-08-28 00:27:25 +00:00
Frank Zago e806399246 Compile fixes. 2009-08-26 23:38:17 +00:00
Frank Zago be76586fab Added missing dependencies to makefiles. 2009-08-26 23:37:15 +00:00
Frank Zago ac7c7a3d23 Re-order declaration of 2 variables, and fix a typo. 2009-08-21 00:59:54 +00:00
Frank Zago 5352496bad Fixed uninitialized variables. callback2 is not yet initialized. 2009-08-21 00:59:12 +00:00
Frank Zago 8458a03e85 Added missing initialization. 2009-08-20 04:34:38 +00:00
Frank Zago 655daf238f Typos. 2009-08-20 01:56:00 +00:00
Frank Zago 81109b3897 Added missing headers. 2009-08-19 05:01:25 +00:00
Frank Zago 6312a55bac Fixed uninitialized variables. 2009-08-19 05:00:59 +00:00
Frank Zago a7b7b0a431 Add new files to makefiles. 2009-08-19 04:45:33 +00:00
Frank Zago c7a307dfed Compile fix. 2009-08-18 01:57:39 +00:00
Frank Zago 2844fe7738 Removed extra qualifier. 2009-08-17 02:26:56 +00:00
Frank Zago 79362501c1 Make sure we actually have an ellipsis. 2009-08-15 15:43:30 +00:00
Frank Zago 9ebd6883ce libtool is a generated file, so remove it. 2009-08-15 02:26:14 +00:00
Frank Zago 6ff6055cff More instruction about packages to install for Ubuntu 9.04. 2009-08-15 02:23:04 +00:00
Frank Zago 69217ff217 Compile fix for g++. 2009-08-12 02:08:59 +00:00
Frank Zago 2bc0efe71f Compile fixes for gcc. 2009-08-12 02:02:58 +00:00
Frank Zago 575840f641 Use amin instead of min. 2009-08-08 06:13:56 +00:00
Frank Zago bf17a77e00 Added workaround for a const value treated by gcc -O0 as a regular variable, and thus preventing linking. 2009-08-08 05:45:00 +00:00
Frank Zago 9aca713050 Compile fixes. 2009-08-06 05:08:17 +00:00
Frank Zago 2496cb4aa5 Fixed buffer overrun. 2009-08-02 15:18:35 +00:00
Frank Zago 601117f440 Fixed incorrect variable name. 2009-07-18 23:39:14 +00:00
Frank Zago 7d9da8974d Moved the rest of creatures abilities to cr_abils.txt. 2009-07-10 02:42:18 +00:00
Frank Zago 83791aa3e1 Moved some creatures abilities to cr_abils.txt. 2009-07-07 04:12:41 +00:00
Frank Zago df1e3bf7bd Many typos. 2009-07-07 03:48:00 +00:00
Frank Zago 02ddeb8e88 Use ability name instead of number. 2009-07-07 03:34:23 +00:00
Frank Zago 97287bb7d1 Added note about using video for linux. 2009-06-28 16:10:57 +00:00
Frank Zago 4dbc7495d6 Added battle result videos. Videos in 2 parts are not supported yet. 2009-06-28 16:02:39 +00:00
Frank Zago f86e23414e Compile fix. 2009-06-28 14:58:58 +00:00
Frank Zago 6be7a77fee Linux video player updates. 2009-06-27 23:33:59 +00:00
Frank Zago cd589e7e2d Indicate which FFmpeg packages to install. 2009-06-27 12:56:21 +00:00
Frank Zago 0d7f92b290 Compile fix for boost <= 1.37 2009-06-27 04:28:48 +00:00
Frank Zago 6cf3823154 Correctly count the number of wandering heroes when moving hero off garrison. 2009-06-24 03:14:46 +00:00
Frank Zago a42b77b682 Typo. 2009-06-24 03:04:59 +00:00
Frank Zago 191aebed58 Fix y position for video under linux/windows. 2009-06-23 00:01:25 +00:00
Frank Zago d8cfced035 Fixed include path. 2009-06-23 00:00:15 +00:00
Frank Zago f0b1c8b644 Fix bug where adventure map is not displayed correctly when hero is moving. 2009-06-20 15:57:53 +00:00
Frank Zago af7605b363 s/WIN32/_WIN32/ 2009-06-20 14:52:20 +00:00
Frank Zago 4e9fb63a8b Fixed potential issue in video player. 2009-06-20 02:18:27 +00:00
Frank Zago c3139125b4 Fixed several spellbook glitches. 2009-06-20 02:14:25 +00:00
Frank Zago 2f39106ff8 Spell book animations. 2009-06-20 01:42:19 +00:00
Frank Zago a11ea59418 Video player compilation. 2009-06-20 01:40:52 +00:00
Frank Zago dcbf717a07 Basic video player, with no sound, using FFMpeg. Currently plays SMK only. 2009-06-20 01:34:26 +00:00
Frank Zago e874681fc0 Fixed CVidHandler entry parser. 2009-06-20 01:31:45 +00:00
Frank Zago 7bb09341a0 Derive CSndHandler and CVidHandler from new class CMediaHandler. 2009-06-19 04:27:12 +00:00
Frank Zago cb1c31ac49 Simplified terrainRect prototype. 2009-06-17 01:08:24 +00:00
Frank Zago 287e0c016d Restores smoothing. 2009-06-15 04:02:59 +00:00
Frank Zago cf6a4c7d9a Removed obsolete todo. 2009-06-14 16:40:50 +00:00
Frank Zago eacbddb7a0 Replaced 4 hardcoded values. 2009-06-14 16:38:24 +00:00
Frank Zago e4275c2c90 Make MARK_BLOCKED_POSITIONS and MARK_VISITABLE_POSITIONS compilable. 2009-06-14 15:53:40 +00:00
Frank Zago bda62ab147 Added 1280x1024 resolution. 2009-06-14 15:15:54 +00:00
Frank Zago facb984654 Missing diff from previous commit. 2009-06-14 15:14:03 +00:00
Frank Zago e5203db83c In config file, for adventure map, replaced tilesWidth, tilesHeight, trimX and trimY with width and height. Let VCMI do the right calculations. 2009-06-14 15:10:59 +00:00
Frank Zago 96a34c30f0 Center active hero on map. Added map grid. Fixed a visual artefact. 2009-06-14 07:02:06 +00:00
Frank Zago a8f9e4d033 Fix prototype for blitWithRotate1. 2009-06-13 23:25:15 +00:00
Frank Zago 1c2ac579d5 The size of the frame around the map depends on the screen size, so compute it. 2009-06-12 03:26:41 +00:00
Frank Zago a3d2ae2135 Temporarily disable map smoothing as it is source of crashes 2009-06-12 00:51:58 +00:00
Frank Zago eb62c921b1 Not needed anymore. 2009-06-11 13:35:07 +00:00
Frank Zago cc1c7c83c5 Readability and micro optimization. 2009-06-11 03:57:21 +00:00
Frank Zago 914da9d6d6 Use mutex.hpp instead of shared_mutex.hpp. 2009-06-10 14:01:27 +00:00
Frank Zago 1113de7a1c In hero window, only display heroes that are not in garrison. 2009-06-10 01:23:17 +00:00
Frank Zago 3398941231 Fix difficulty level displayed (Normal instead of ormal). 2009-06-10 00:34:40 +00:00
Frank Zago 574780da21 Fixed primary/secondary skill levels given by a scholar. 2009-06-10 00:06:35 +00:00
Frank Zago be806d7942 Use right path separator. 2009-06-09 05:02:22 +00:00
Frank Zago cbf2ed6b7a Protects against concurrent access to in game console texts. 2009-06-09 03:53:29 +00:00
Frank Zago c75bbc359e CSDL_Ext::alphaTransform does not need to return the modified surface. 2009-06-06 22:47:23 +00:00
Frank Zago 78d62481e4 Fixed some small one-time memory leaks. 2009-06-06 22:36:15 +00:00
Frank Zago b1c9b17327 Fix for bug introduced in r937. 2009-06-06 19:47:25 +00:00
Frank Zago 3e00e68e50 Typo. 2009-06-06 19:10:38 +00:00
Frank Zago 177d146f04 Optimize: don't compute invariants inside loops. 2009-06-06 19:07:51 +00:00
Frank Zago a817244a98 Optimize. 2009-06-06 18:53:35 +00:00
Frank Zago 7acd191663 Move invariants out of the loops. 2009-06-06 17:43:36 +00:00
Frank Zago 7fe8e08e02 Makes code more readable + micro-optimization. 2009-06-06 17:33:26 +00:00
Frank Zago e0c600b963 Don't close the server socket while another thread is using it. 2009-06-06 15:17:07 +00:00
Frank Zago 83432e30c0 Fixed projectile name for Storm Elemental and Titan. 2009-06-05 02:47:25 +00:00
Frank Zago 8bc64d87e9 Force the popup window to be completely oin scs\reen. Fixes bug #2799727. 2009-06-02 03:01:17 +00:00
Frank Zago b2014c79d4 Try to better dimension the info windows. 2009-06-02 02:15:23 +00:00
Frank Zago fa7f35bbf4 Do not use hardcoded font sizes in messages. 2009-06-01 05:40:54 +00:00
Frank Zago 627c20c949 Typo. 2009-06-01 03:36:13 +00:00
Frank Zago d9215d050c Fix typo. 2009-06-01 03:17:54 +00:00
Frank Zago da0bf61b54 Fixed typo. 2009-06-01 03:04:50 +00:00
Frank Zago ee385d7654 Fix comment from previous commit. 2009-05-30 17:37:53 +00:00
Frank Zago e7b2074812 In tavern update the hover text for the RECRUIT button when a hero is selected. 2009-05-30 16:17:44 +00:00
Frank Zago 5b25b21a15 Hero description in tavern is invariant, so move it into its constructor instead of recreating it for every frame. 2009-05-30 15:58:28 +00:00
Frank Zago e3bfc51328 Initialize animval. Fixes crash in town. 2009-05-29 13:43:33 +00:00
Frank Zago 7a89b33ab7 Fixed init of playerInfo. Fixes crash during save game where not all 8 players are present. 2009-05-29 03:53:53 +00:00
Frank Zago 566a99932b Enable key repeats. Useful for the map selection screen. 2009-05-29 03:03:19 +00:00
Frank Zago 94b8fa4f9d Added support for Home/End. 2009-05-29 02:39:12 +00:00
Frank Zago 53129ec1a7 Made sortMaps clearer. 2009-05-29 01:54:45 +00:00
Frank Zago e863269893 Use a temporary vector to keep list of maps to display instead of using sizeFilter. That should fix all the glitches reported. Added support for pgup/pgdown. 2009-05-29 01:50:33 +00:00
Frank Zago 6b87161ae2 Further blit8bppAlphaTo24bpp optimizations (use invariant loop counters, switch RShift cases). 2009-05-28 02:58:29 +00:00
Frank Zago 79cd541bbf Optimized blitWithRotate3. 2009-05-27 23:43:47 +00:00
Frank Zago af5dfd9dbc Optimized blitWithRotate2. 2009-05-27 23:21:34 +00:00
Frank Zago aa2e8b0eb7 Change projectile name for monk/zealots. 2009-05-27 22:57:01 +00:00
Frank Zago b38c279225 Optimized blitWithRotate1. 2009-05-27 04:10:35 +00:00
Frank Zago 5eb067e3fd Revert memory mapped support for LOD files (r881, r886 and r895) because on Windows these files get locked and other applications cannot access them anymore. 2009-05-26 04:52:34 +00:00
Frank Zago bd608a3d88 Clear some warnings. 2009-05-24 16:49:19 +00:00
Frank Zago 7e7143cf2c Load a map by block instead of byte per byte. 2009-05-24 16:33:42 +00:00
Frank Zago 6635cf4f23 Made a few functions static or static inline. 2009-05-23 22:57:39 +00:00