Commit graph

11 commits

Author SHA1 Message Date
balrok
bd30769dec [8475] fixed some gcc-warnings
all warnings from Wunused
and some from Wall

cause unused may be most interesting for some:
they were in following files:
src/game/Level2.cpp
src/game/Map.cpp
src/game/SpellAuras.cpp
src/game/Unit.cpp
src/mangosd/Master.cpp
but i guess mostly someone just fogot to remove this code

for some unsigned vs signed warnings i used:
ack "for.*int .*size\(\)" | ack -v uint

also note for coding:
if you do something like
    if( a && b || c)
just place parentheses around (a && b) && always will have
precedence over || but without parentheses this could be overseen
quite fast (at least that's my guess why gcc will warn for this)

Signed-off-by: balrok <der-coole-carl@gmx.net>
2009-09-05 13:47:47 +02:00
Neo2003
fa03b3663a Mobs fleeing and getting assistance feature implementaion.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>

Also rename ACTION_T_FLEE to ACTION_T_FLEE_FOR_ASSIST for clear use
2009-05-21 01:33:28 +04:00
AlexDereka
27fabf7ace [7745] Fixed gcc warnings. 2009-05-03 20:25:27 +04:00
VladimirMangos
e4a5a47178 [7459] Support case when movegen at own Finilize add another movegen. 2009-03-14 23:41:18 +03:00
VladimirMangos
6b381f2d0e [7247] Fixed memory and data lost at dalayed expire/clear of movement generators. 2009-02-07 23:38:31 +03:00
ApoC
fb432a0f36 [7238] Fixed typos in my prev. commit.
Signed-off-by: ApoC <apoc@nymfe.net>
2009-02-07 03:41:15 +01:00
ApoC
6e65999d86 [7237] Fixed crash when MotionMaster's Clean or ExpireMovement called from MovementGenerator update.
Implemented delayed movement generators removed in case cleanup is triggered
from movement generator update. For this purpose is in runtime allocated vector
for temporary store of all deleted movement generators. After delayed delete
this vector is deleted.

Signed-off-by: ApoC <apoc@nymfe.net>
2009-02-07 03:29:06 +01:00
arrai
c6f48843ad [7017] Updated copyright notice for new year 2009-01-03 18:09:51 +01:00
Wyk3d
ed4efc317c [6928] Corrected the handling of evade and threat for creature summoned pets. Should fix some of the setVisibility crashes. 2008-12-22 12:48:19 +03:00
VladimirMangos
004bdf1d3c Fixed some format arg type/value pairs. Other warnings. 2008-11-03 14:21:24 +03:00
TheLuda
800ee76535 Imported MaNGOS revision 6767 from http://mangos.svn.sourceforge.net/svnroot/mangos/trunk/ 2008-10-14 00:29:20 +02:00