Commit Graph

2259 Commits (2eeab6d4d0c9114f73d753b21838cddfceae14d9)

Author SHA1 Message Date
krzys-h 270c77da5b Fixed memory corruption in produce(), closes #600 2015-08-25 10:49:59 +02:00
krzys-h b9e7143734 Fixed PowerCaptor not recharging transported objects, closes #594 2015-08-25 10:32:50 +02:00
krzys-h 5a29bee3b4 Fixed RepairCenter repairing itself, closes #579 and #589 2015-08-25 10:27:14 +02:00
krzys-h 844e7343e0 Possible fix to #601 2015-08-24 23:19:02 +02:00
krzys-h 07141f6d90 Fixed wrong energy level in CBot (mentioned in #601) 2015-08-24 21:14:19 +02:00
krzys-h 6ed83bb63f Fixed Shielder not being destructible by OrgaMatter even when the shield is not active, closes #597 2015-08-24 21:12:06 +02:00
krzys-h 79d796754a Fixed Shielder shutdown animation, closes #595 2015-08-24 20:55:21 +02:00
krzys-h 2722e72afb Fixed Destroyer destroying itself, closes #599 2015-08-24 20:27:57 +02:00
krzys-h f78f4854b4 Fixed failing assertion when turning objects into ruins, closes #598 2015-08-24 20:22:08 +02:00
krzys-h 39d2236be6 Fixed %lvl% in saved games, closes #586 2015-08-24 20:08:08 +02:00
krzys-h 8ff6fadb75 Unlocked free window resolution change 2015-08-24 19:56:50 +02:00
krzys-h d9b680bdcf Removed Windows restart on resolution change workaround 2015-08-24 19:47:48 +02:00
krzys-h b5bd1b2d74 Destroy static buffers after resolution change
Under windows, changing the video mode causes SDL to destroy and recreate the OpenGL context, which invalidates all current static buffers.
It works on Linux because the actual SDL implementation here differs.

See http://sdl.beuc.net/sdl.wiki/SDL_SetVideoMode for details:
> Also note that, in Windows, setting the video mode resets the current OpenGL context. You must execute again the OpenGL initialization code (set the clear color or the shade model, or reload textures, for example) after calling SDL_SetVideoMode. In Linux, however, it works fine, and the initialization code only needs to be executed after the first call to SDL_SetVideoMode (although there is no harm in executing the initialization code after each call to SDL_SetVideoMode, for example for a multiplatform application).
2015-08-24 19:43:06 +02:00
Piotr Dziwinski 805f5b54d8 Add script for running colobot-lint on changed files 2015-08-23 00:55:55 +02:00
Piotr Dziwinski 60f0a7b45c Get rid of "blacklisting shadowXX.png" logs 2015-08-22 18:17:57 +02:00
Piotr Dziwinski c3d4d46583 Fix missing empty line after license header 2015-08-22 17:52:07 +02:00
Piotr Dziwinski b93f610930 Fix license header in all files 2015-08-22 16:40:02 +02:00
Piotr Dziwinski a4b791e298 Update LICENSE-HEADER.txt 2015-08-22 15:19:30 +02:00
krzys-h e1f0c0f91f Fixed #585 2015-08-19 20:56:04 +02:00
krzys-h 14396847d6 Added missing license headers again 2015-08-19 20:27:29 +02:00
krzys-h d723295aad Revert "Backported some thread classes cleanup from dev-threads (1ad8ff6e47fb9e249e6bcbc2f4a3a94933a1168a)"
This reverts commit 7cf73c94c4.

I wanted to make this better but failed so badly ;) The memory holding the thread function pointer may be freed before the thread is started, so the whole resource passing thing is needed anyway.

This probably fixes #584
2015-08-19 20:25:17 +02:00
krzys-h 27bbc27948 Fixed object creation after loading save file
Looks like @piotrdz broke it when creating the ObjectCreateParams struct. I'm kinda suprised this remained unnoticed for so long ;)
Reported in issue #570
2015-08-19 20:06:55 +02:00
krzys-h 9d6543a947 Close game window on error (mentioned in #570)
Otherwise, the error doesn't show up and the game appears to freeze in fullscreen mode
2015-08-19 11:14:25 +02:00
krzys-h 8421189716 Merge branch 'dev-cbot-syntax-highlighting' into dev (#575) 2015-08-18 23:01:02 +02:00
krzys-h e91ecbbb01 Removed unused references to effect03.png from the code 2015-08-18 22:59:31 +02:00
krzys-h d6a946618e Syntax highlighting in SatCom 2015-08-18 22:35:38 +02:00
krzys-h 1c0fc21e2b Made all colors a bit darker 2015-08-18 22:12:00 +02:00
krzys-h 3fe44be5d5 Fixed no monospace font in the editor 2015-08-18 22:12:00 +02:00
krzys-h c5da68d516 New CBot syntax highlighting 2015-08-18 22:12:00 +02:00
krzys-h 371621ced4 Render trace colors in the code instead of using texture 2015-08-18 22:11:04 +02:00
krzys-h b086c52b14 Render some things in code instead of using effect03.png texture (in CEdit) 2015-08-18 21:04:00 +02:00
krzys-h eef76a9b29 Fixed not working Converter, closes #574 2015-08-18 19:38:58 +02:00
krzys-h 118ceaa099 Fixed music stopping during apperance phase, closes #573 2015-08-18 19:33:01 +02:00
krzys-h 28925106e4 Cleaned up some long lists of ifs 2015-08-18 12:29:41 +02:00
krzys-h a5c84b9a1e Removed unused OBJECT_FIX and OBJECT_FRET 2015-08-18 11:43:41 +02:00
Piotr Dziwinski a63a959dbe Apply clang-modernize -use-nullptr 2015-08-17 22:40:52 +02:00
Piotr Dziwinski ba3284b8b8 Apply clang-modernize -add-override 2015-08-17 22:12:09 +02:00
krzys-h 2dbacc28b5 Fixed too small AlienAnt damage 2015-08-17 22:05:26 +02:00
krzys-h 63b4849275 Fixed #561 2015-08-17 21:57:53 +02:00
krzys-h 1717fe071e Removed unused variables 2015-08-17 21:42:18 +02:00
Piotr Dziwinski 6534978dea Refactor Character::posPower 2015-08-17 21:28:30 +02:00
krzys-h 98748d757f Fixed paths to RemoveDirectory 2015-08-17 21:03:40 +02:00
krzys-h 7e028977bd Implemented emergency save on crash, closes #572 2015-08-17 20:56:42 +02:00
krzys-h ee9457f156 Fixed failing assert in CMotionHuman with Tech 2015-08-17 19:32:17 +02:00
krzys-h d5a468df46 Fixed regex in checking object.factory parameter 2015-08-17 19:30:27 +02:00
krzys-h 1185bd4c36 Fixed OrgaMatter destroying itself and the wasp 2015-08-17 19:12:58 +02:00
krzys-h 0bff05f095 Fixed problems with motor() + fire() in CBot while the robot was selected 2015-08-17 18:26:09 +02:00
krzys-h 1059ae37c1 Shielder subclass 2015-08-17 14:06:31 +02:00
krzys-h 63bee182d2 Moved SetFixed/GetFixed to CBaseAlien 2015-08-17 13:19:21 +02:00
krzys-h 304b0b20d8 Created base classes for aliens, robots and buildings 2015-08-17 12:49:54 +02:00