Originally Posted by
Aznex
Code:
if (!aur)
return;
if(m_mapId!=530 && (m_mapId!=571 || m_mapId != 0 || m_mapId != 1 || (IsPlayer() && !((Player*)this)->HasSpellwithNameHash(SPELL_HASH_COLD_WEATHER_FLYING))))
// can't use flying auras in non-outlands or non-northrend (northrend requires cold weather flying)
{
for( uint32 i = 0; i < 3; ++i )
Should be fine.
the error log i get when compiling with that code xd
Code:
Build started: Project: arcemu-world, Configuration: Release|Win32
Command Lines Creating temporary file "c:\Documents and Settings\Owner\Desktop\ArcEmu\trunk\win\VC90\arcemu-world___Win32_Release\RSP00000437322904.rsp" with contents
[
/Ox /Ob2 /Oi /Ot /Oy /GL /I "..\..\src\boost" /I "..\..\src\arcemu-shared" /I "..\..\src\arcemu-world\Collision\vmap" /I "..\..\src\arcemu-world\Collision\g3dlite" /I "..\..\extras\arcemu-windows-libraries\VC\include" /D "_HAS_ITERATOR_DEBUGGING=0" /D "WIN32" /D "NDEBUG" /D "_LIB" /D "_CRT_SECURE_NO_WARNINGS" /D "_CRT_NONSTDC_NO_WARNINGS" /D "_MBCS" /GF /FD /EHsc /MD /GS- /fp:fast /Yu"stdafx.h" /Fp".\arcemu-world___Win32_Release/game.pch" /Fo".\arcemu-world___Win32_Release/" /Fd".\arcemu-world___Win32_Release/" /W3 /c /Zi /MP /Zm256
"..\..\src\arcemu-world\Unit.cpp"
]
Creating command line "cl.exe @"c:\Documents and Settings\Owner\Desktop\ArcEmu\trunk\win\VC90\arcemu-world___Win32_Release\RSP00000437322904.rsp" /nologo /errorReport:prompt"
Output Window Compiling...
Unit.cpp
..\..\src\arcemu-world\Unit.cpp(4301) : error C2059: syntax error : 'if'
..\..\src\arcemu-world\Unit.cpp(4302) : error C2143: syntax error : missing ';' before '{'
..\..\src\arcemu-world\Unit.cpp(4302) : error C2447: '{' : missing function header (old-style formal list?)
..\..\src\arcemu-world\Unit.cpp(4309) : error C2059: syntax error : 'if'
..\..\src\arcemu-world\Unit.cpp(4310) : error C2143: syntax error : missing ';' before '{'
..\..\src\arcemu-world\Unit.cpp(4310) : error C2447: '{' : missing function header (old-style formal list?)
..\..\src\arcemu-world\Unit.cpp(4434) : error C2059: syntax error : 'else'
..\..\src\arcemu-world\Unit.cpp(4435) : error C2143: syntax error : missing ';' before '{'
..\..\src\arcemu-world\Unit.cpp(4435) : error C2447: '{' : missing function header (old-style formal list?)
..\..\src\arcemu-world\Unit.cpp(4448) : error C2059: syntax error : 'if'
..\..\src\arcemu-world\Unit.cpp(4449) : error C2143: syntax error : missing ';' before '{'
..\..\src\arcemu-world\Unit.cpp(4449) : error C2447: '{' : missing function header (old-style formal list?)
..\..\src\arcemu-world\Unit.cpp(4457) : error C2059: syntax error : 'if'
..\..\src\arcemu-world\Unit.cpp(4458) : error C2143: syntax error : missing ';' before '{'
..\..\src\arcemu-world\Unit.cpp(4458) : error C2447: '{' : missing function header (old-style formal list?)
..\..\src\arcemu-world\Unit.cpp(4468) : error C2065: 'aur' : undeclared identifier
..\..\src\arcemu-world\Unit.cpp(4468) : error C2227: left of '->GetTarget' must point to class/struct/union/generic type
type is ''unknown-type''
..\..\src\arcemu-world\Unit.cpp(4469) : error C2059: syntax error : 'if'
..\..\src\arcemu-world\Unit.cpp(4470) : error C2143: syntax error : missing ';' before '{'
..\..\src\arcemu-world\Unit.cpp(4470) : error C2447: '{' : missing function header (old-style formal list?)
..\..\src\arcemu-world\Unit.cpp(4483) : error C2059: syntax error : 'if'
..\..\src\arcemu-world\Unit.cpp(4484) : error C2143: syntax error : missing ';' before '{'
..\..\src\arcemu-world\Unit.cpp(4484) : error C2447: '{' : missing function header (old-style formal list?)
..\..\src\arcemu-world\Unit.cpp(4493) : error C2059: syntax error : 'if'
..\..\src\arcemu-world\Unit.cpp(4495) : error C2143: syntax error : missing ';' before '->'
..\..\src\arcemu-world\Unit.cpp(4495) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
..\..\src\arcemu-world\Unit.cpp(4496) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
..\..\src\arcemu-world\Unit.cpp(4496) : error C2078: too many initializers
..\..\src\arcemu-world\Unit.cpp(4499) : error C2059: syntax error : 'if'
..\..\src\arcemu-world\Unit.cpp(4502) : error C2143: syntax error : missing ';' before '->'
..\..\src\arcemu-world\Unit.cpp(4502) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
..\..\src\arcemu-world\Unit.cpp(4502) : error C2086: 'int aur' : redefinition
..\..\src\arcemu-world\Unit.cpp(4495) : see declaration of 'aur'
..\..\src\arcemu-world\Unit.cpp(4504) : error C2057: expected constant expression
..\..\src\arcemu-world\Unit.cpp(4504) : error C2466: cannot allocate an array of constant size 0
..\..\src\arcemu-world\Unit.cpp(4504) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
..\..\src\arcemu-world\Unit.cpp(4504) : error C2440: 'initializing' : cannot convert from 'int' to 'int []'
There are no conversions to array types, although there are conversions to references or pointers to arrays
..\..\src\arcemu-world\Unit.cpp(4505) : error C2143: syntax error : missing ';' before '->'
..\..\src\arcemu-world\Unit.cpp(4505) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
..\..\src\arcemu-world\Unit.cpp(4505) : error C2086: 'int aur' : redefinition
..\..\src\arcemu-world\Unit.cpp(4495) : see declaration of 'aur'
..\..\src\arcemu-world\Unit.cpp(4509) : error C2059: syntax error : 'if'
..\..\src\arcemu-world\Unit.cpp(4510) : error C2143: syntax error : missing ';' before '{'
..\..\src\arcemu-world\Unit.cpp(4510) : error C2447: '{' : missing function header (old-style formal list?)
..\..\src\arcemu-world\Unit.cpp(4516) : error C2143: syntax error : missing ';' before '->'
..\..\src\arcemu-world\Unit.cpp(4516) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
..\..\src\arcemu-world\Unit.cpp(4516) : error C2086: 'int aur' : redefinition
..\..\src\arcemu-world\Unit.cpp(4495) : see declaration of 'aur'
..\..\src\arcemu-world\Unit.cpp(4519) : error C2059: syntax error : 'if'
..\..\src\arcemu-world\Unit.cpp(4520) : error C2143: syntax error : missing ';' before '{'
..\..\src\arcemu-world\Unit.cpp(4520) : error C2447: '{' : missing function header (old-style formal list?)
..\..\src\arcemu-world\Unit.cpp(4540) : error C2059: syntax error : 'if'
..\..\src\arcemu-world\Unit.cpp(4541) : error C2143: syntax error : missing ';' before '{'
..\..\src\arcemu-world\Unit.cpp(4541) : error C2447: '{' : missing function header (old-style formal list?)
..\..\src\arcemu-world\Unit.cpp(4554) : error C2059: syntax error : 'if'
..\..\src\arcemu-world\Unit.cpp(4556) : error C2059: syntax error : 'if'
..\..\src\arcemu-world\Unit.cpp(4559) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
..\..\src\arcemu-world\Unit.cpp(4559) : error C2078: too many initializers
..\..\src\arcemu-world\Unit.cpp(4560) : error C2059: syntax error : '}'
..\..\src\arcemu-world\Unit.cpp(4560) : error C2143: syntax error : missing ';' before '}'
..\..\src\arcemu-world\Unit.cpp(4560) : error C2059: syntax error : '}'
..\..\src\arcemu-world\Unit.cpp(4563) : error C2143: syntax error : missing ';' before '{'
..\..\src\arcemu-world\Unit.cpp(4563) : error C2447: '{' : missing function header (old-style formal list?)
Results Build log was saved at "file://c:\Documents and Settings\Owner\Desktop\ArcEmu\trunk\win\VC90\arcemu-world___Win32_Release\BuildLog.htm"
arcemu-world - 60 error(s), 0 warning(s)
nvm fixed it