21 Commits

Author SHA1 Message Date
Kamil Chojnowski
869de6886f Tidy up the source code
* Replaced push_back calls with emplace_back where applicable.
* Replaced size() == 0 and size() != 0 with empty() and !empty().
* Replaced C style loops for range for loops where applicable.
* Fixed mismatching arg names between function declarations and definitions.
* Replaced NULL and 0 (in the context of pointers) with nullptr.
* Remove unnecessary calls to string::c_str() where applicable.
* Replaced deprecated C headers with proper C++ headers.
* Removed unnecessary null pointer checks when deleting pointers
(deleting a null pointer has no effect).
* Fixed a potential memory leak in apngloader.cpp file.
* Replaced unsafe strcpy with strncpy in the demangle_name function.
2019-10-10 00:59:24 +02:00
Bruno Minervino
882be286d9 Update copyright year for 2017 2017-01-13 08:47:07 -02:00
Ranieri Althoff
2f1f62a916
Update copyright year for 2016 2016-07-09 22:11:34 -03:00
Gabriel Pedro
04b516a1a0 Update copyright for 2015 2015-03-04 10:36:51 -04:00
BenDol
547b18db9a Update copyright for 2014 2014-04-01 18:36:42 +13:00
Eduardo Bart
9907e9e5c7 Fix particles and some fun in the background LOL 2013-01-19 18:24:59 -02:00
Eduardo Bart
122577a916 Just rename some files
* Fix a server ping issue
2013-01-08 16:32:05 -02:00
Eduardo Bart
3bac3dcbb4 Rework stdext classes
Implement new classes:
* stdext::any => ligher replacement for boost::any
* stdext::packed_any => like any but optimized to use less memory
* stdext::shared_object => ligher replacement for std::shared_ptr
* stdext::shared_object_ptr => replacement for boost::intrusive_ptr
* stdext::fast_storage => for storing dynamic data
* stdext::packed_storage => same but with less memory
* stdext::packed_vector => std::vector with less memory

Compiling should be a little faster now because global boost including
is not needed anymore
2012-08-01 09:23:35 -03:00
Eduardo Bart
e0431021b5 Huge engine change, replace all std::shared_ptrs
Create a new shared pointer type stdext::shared_object_ptr and stdext::shared_obj
using boost::intrusive_ptr

Advantages:
 * half memory usage
 * faster and lightweight

Disadvantages:
 * using weak_ptr is not supported anymore
 * compiling seems slower
2012-07-29 00:34:40 -03:00
Eduardo Bart
1c5b906b5b some optimizations 2012-06-02 11:43:27 -03:00
Eduardo Bart
b4261a8c7b bunch of optimizations 2012-03-20 12:17:10 -03:00
Eduardo Bart
9104305f37 update copyright notice 2012-01-02 14:59:24 -02:00
Henrique Santiago
6973e1639a particles colors 2011-12-18 00:21:12 -02:00
Henrique Santiago
eed6fab4b1 particles afectors upgrade and timer rework 2011-12-17 00:40:00 -02:00
Henrique Santiago
26eb3b42a6 some changes to particles 2011-12-16 00:48:10 -02:00
Henrique Santiago
ad38dad227 particle affectors 2011-12-15 23:59:29 -02:00
Henrique Santiago
435161df62 emitter delay and system deletion 2011-12-15 21:48:15 -02:00
Henrique Santiago
2643de367a remove particles from emitter 2011-12-15 18:54:42 -02:00
Henrique Santiago
4f905da009 particles ptr fixes 2011-12-15 18:15:01 -02:00
Henrique Santiago
8926f33679 particles fixes 2011-12-15 16:39:57 -02:00
Henrique Santiago
f67770ed00 particles from file 2011-12-15 16:20:09 -02:00