1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-05 00:49:09 +02:00
Commit Graph

128 Commits

Author SHA1 Message Date
58f32f6dc2 Code style: uncrustify formatting preview 2017-07-20 02:50:47 +03:00
2da3d8a563 Code style: remove senseless comments 2017-07-18 00:04:00 +03:00
b2f74a93cf Code style: add empty parameter list to all lambda expressions (#345) 2017-07-17 15:35:57 +03:00
a4c0ad94b1 Code style: remove default value hints in definitions (#342)
Some are outdated and this is something IDE are useful for.
2017-07-15 14:08:20 +03:00
f1e5797834 Code style: move or add licensing information on top of every file 2017-07-14 01:26:03 +03:00
dbcd79c48a Code cleanup: remove double and unneded semicolons 2017-07-12 22:01:10 +03:00
Fay
65e88639a3 Minor: code format; 2017-06-08 21:07:09 +02:00
Fay
02fa478bfb Refactor: unified logic for notyfing CIntObjs about left/right mouse click events;
Added support for middle-click;
2017-06-07 20:16:18 +02:00
0190c9804e formatting 2017-06-06 19:45:34 +03:00
a31c28ec33 Unified war machine mechanics.
* it is possible to define new war machines
* added warMachine field to artifact configuration
2017-06-06 19:18:26 +03:00
df3574b50f Fixed https://bugs.vcmi.eu/view.php?id=2685 2017-05-27 17:07:11 +03:00
76acc29d6c Correctly display visiting army in kingdom overview, fixes #1761
Do not modify CIntObject::pos, according to its doc
2017-05-22 22:34:05 +02:00
e4d3cdca09 Simplify 2017-05-13 16:57:15 +02:00
cc02001836 T hotkey select first town when last is active, fixes #1293 2017-05-11 20:49:17 +02:00
cde8542475 Oversight. 2017-03-18 14:25:17 +01:00
dd5660ff08 Simplifity code. 2017-03-18 14:21:41 +01:00
d045f59a11 Little fix in braces #2. 2017-03-18 07:58:40 +01:00
68c618cb99 Little fix in highlight in CGarrisonSlot. 2017-03-17 21:24:55 +01:00
d4091db172 CInfoBar: only pop up when adventure map interface is on top 2017-03-14 00:03:15 +03:00
7d29365e4a Fixed CID 1243197 2016-11-28 02:50:45 +03:00
2dd6a47764 try to plug a few coverity false positives 2016-11-28 02:50:41 +03:00
312793efd9 try to plug a few coverity false positives 2016-11-27 23:41:17 +03:00
6196ae7fca Fixed a few CWE-457 2016-11-27 19:00:16 +03:00
27b853618c Fixed a few CWE-457 2016-11-27 18:17:20 +03:00
c4ab962cc0 Fixed a few CWE-457 2016-11-27 17:48:18 +03:00
f11c54b5e9 Wipe unused ClickableArea 2016-11-27 16:07:03 +03:00
30663f15ea Fixed CID 1288863 2016-11-26 22:12:52 +03:00
ac8b618a42 Fixed CID 1366373 2016-11-25 19:17:37 +03:00
db40e125eb Fixed CID 1243181, CID 1197449, CID 1366374, CID 1366377, CID 1366359 2016-11-24 21:56:30 +03:00
33c0bc49f6 Merge branch 'CommanderArtifacts3' into develop 2016-11-13 15:31:16 +03:00
b626f9a134 Fix CCommanderArtPlace localization + minor fixes 2016-11-08 17:26:24 +01:00
a8a661b159 Map handler refactoring, part 2. 2016-11-08 00:19:53 +03:00
aad675a7c4 Revert "Merge branch 'p254_4' into develop"
This reverts commit 37f68713a7, reversing
changes made to 4477b7c35d.
2016-11-08 00:17:20 +03:00
c9a3d92ff3 cleanup 2016-11-06 17:36:46 +03:00
96fa0fb6d4 Implement giving commander artifacts back to hero 2016-11-06 13:02:00 +01:00
46196daa07 cleanup 2016-11-06 05:27:56 +03:00
baeb3c9e55 Refactor CArtPlace + use it for commanders 2016-11-04 17:54:09 +01:00
220e4d2030 Survive giving Commander's badge to stacks
Used to SEGFAULT
2016-10-30 14:27:53 +01:00
365c64a345 use CAnimImage for world view legend 2016-10-27 16:34:10 +03:00
ba5b65ff93 get rid of CDefHandler in CSpellWindow 2016-10-16 15:27:35 +03:00
3a52a3c663 Allow CAnimImage to share animation object. 2016-10-16 12:58:18 +03:00
63cbf960df cleaned up spell window creation 2016-10-16 09:27:22 +03:00
5506ae036a Reworked CHillFortWindow
* fixed displaying free upgrades
* do not try to print 3rd or more resource in slot cost (in theory possible with mods)
** we need dynamic gui for that
* CDefEssential--
2016-10-16 08:03:52 +03:00
abb875b400 cleanup 2016-10-16 03:52:11 +03:00
2c1dddde33 Fix memory problems with BonusList
Bonus * -> std::shared_ptr<Bonus>

This cures the following problems:

1) Memory corruption at exit. Some Bonus-es were deleted twice (mods?).
2) Memory leaks. Some Bonuses were not deleted.
3) Reduce the number of "Orphaned child" messages.

Valgrind reports 0 leaked memory now and no invalid reads/writes.
2016-09-29 15:08:00 +02:00
68af6a0c19 Refactoring InfoAboutHero + GetHeroInfo 2016-09-28 13:22:33 +02:00
0236309d25 CArtifactsOfHero: use shared_ptr for SCommonPart 2016-08-30 07:05:31 +03:00
ef05a56e49 cleanup 2016-08-30 05:13:45 +03:00
452e28d183 Remove some useless includes found by cppclean
This of course was tested and shouldn't break anything
2016-08-26 04:42:16 +03:00
10dbbead2d Fix indentation of logging code and around it
That wouldn't be as big issue if problem affected few files, but it everywhere in codebase.
Fixed it everywhere since in most files that is the only code with wrong indentation.
2016-03-12 04:46:21 +03:00