Added #pragma deprecated to include files for deprecated functions and constants
Added #pragma deprecated to include files for deprecated functions and constants
1.1 --- a/plugins/admin-flatfile/admin-simple.sp Tue Aug 07 22:03:11 2007 +0000
1.2 +++ b/plugins/admin-flatfile/admin-simple.sp Tue Aug 07 22:11:00 2007 +0000
1.3 @@ -84,7 +84,7 @@
1.4 ReadAdminLine(const String:line[])
1.5 {
1.6 new String:auth[64];
1.7 - new cur_idx = StrBreak(line, auth, sizeof(auth));
1.8 + new cur_idx = BreakString(line, auth, sizeof(auth));
1.9 new idx = cur_idx;
1.10
1.11 if (cur_idx == -1)
1.12 @@ -98,7 +98,7 @@
1.13
1.14 /* Read flags */
1.15 new String:flags[64];
1.16 - cur_idx = StrBreak(line[idx], flags, sizeof(flags));
1.17 + cur_idx = BreakString(line[idx], flags, sizeof(flags));
1.18 idx += cur_idx;
1.19
1.20 if (flags[0] == '@')
1.21 @@ -148,7 +148,7 @@
1.22 if (cur_idx != -1)
1.23 {
1.24 decl String:password[64];
1.25 - StrBreak(line[idx], password, sizeof(password));
1.26 + BreakString(line[idx], password, sizeof(password));
1.27 SetAdminPassword(admin, password);
1.28 }
1.29
2.1 --- a/plugins/admin-flatfile/admin-users.sp Tue Aug 07 22:03:11 2007 +0000
2.2 +++ b/plugins/admin-flatfile/admin-users.sp Tue Aug 07 22:11:00 2007 +0000
2.3 @@ -77,10 +77,10 @@
2.4 if (StrEqual(key, "auth"))
2.5 {
2.6 auth = true;
2.7 - StrCopy(g_CurAuth, sizeof(g_CurAuth), value);
2.8 + strcopy(g_CurAuth, sizeof(g_CurAuth), value);
2.9 } else if (StrEqual(key, "identity")) {
2.10 auth = true;
2.11 - StrCopy(g_CurIdent, sizeof(g_CurIdent), value);
2.12 + strcopy(g_CurIdent, sizeof(g_CurIdent), value);
2.13 } else if (StrEqual(key, "password")) {
2.14 SetAdminPassword(g_CurUser, value);
2.15 } else if (StrEqual(key, "group")) {
3.1 --- a/plugins/basechat.sp Tue Aug 07 22:03:11 2007 +0000
3.2 +++ b/plugins/basechat.sp Tue Aug 07 22:11:00 2007 +0000
3.3 @@ -521,4 +521,4 @@
3.4 public Handler_DoNothing(Handle:menu, MenuAction:action, param1, param2)
3.5 {
3.6 /* Do nothing */
3.7 -}
3.8 \ No newline at end of file
3.9 +}
4.1 --- a/plugins/basefuncommands.sp Tue Aug 07 22:03:11 2007 +0000
4.2 +++ b/plugins/basefuncommands.sp Tue Aug 07 22:11:00 2007 +0000
4.3 @@ -209,4 +209,4 @@
4.4 ForcePlayerSuicide(target);
4.5
4.6 return Plugin_Handled;
4.7 -}
4.8 \ No newline at end of file
4.9 +}
5.1 --- a/plugins/include/clients.inc Tue Aug 07 22:03:11 2007 +0000
5.2 +++ b/plugins/include/clients.inc Tue Aug 07 22:11:00 2007 +0000
5.3 @@ -166,6 +166,7 @@
5.4 * Backwards compatibility stock - use IsClientInGame
5.5 * @deprecated Renamed to IsClientInGame
5.6 */
5.7 +#pragma deprecated Use IsClientInGame() instead
5.8 stock bool:IsPlayerInGame(client)
5.9 {
5.10 return IsClientInGame(client);
6.1 --- a/plugins/include/float.inc Tue Aug 07 22:03:11 2007 +0000
6.2 +++ b/plugins/include/float.inc Tue Aug 07 22:11:00 2007 +0000
6.3 @@ -228,6 +228,7 @@
6.4 *
6.5 * @deprecated
6.6 */
6.7 +#pragma deprecated Use RoundToNearest() or RoundFloat() instead
6.8 stock FloatRound(Float:value)
6.9 {
6.10 return RoundToNearest(value);
7.1 --- a/plugins/include/functions.inc Tue Aug 07 22:03:11 2007 +0000
7.2 +++ b/plugins/include/functions.inc Tue Aug 07 22:11:00 2007 +0000
7.3 @@ -472,6 +472,7 @@
7.4 *
7.5 * @deprecated
7.6 */
7.7 +#pragma deprecated Use GetNativeCell() or GetNativeCellRef() instead
7.8 stock Float:GetNativeFloat(param, bool:byref)
7.9 {
7.10 if (!byref)
7.11 @@ -487,6 +488,7 @@
7.12 *
7.13 * @deprecated
7.14 */
7.15 +#pragma deprecated Use GetNativeCell() or GetNativeCellRef() instead
7.16 stock Handle:GetNativeHandle(param, bool:byref)
7.17 {
7.18 if (!byref)
8.1 --- a/plugins/include/sdktools_functions.inc Tue Aug 07 22:03:11 2007 +0000
8.2 +++ b/plugins/include/sdktools_functions.inc Tue Aug 07 22:11:00 2007 +0000
8.3 @@ -137,6 +137,7 @@
8.4 /**
8.5 * @deprecated
8.6 */
8.7 +#pragma deprecated Use IgniteEntity() instead
8.8 stock IgnitePlayer(client, Float:time, bool:npc=false, Float:size=0.0, bool:level=false)
8.9 {
8.10 return IgniteEntity(client, time, npc, size, level);
8.11 @@ -145,6 +146,7 @@
8.12 /**
8.13 * @deprecated
8.14 */
8.15 +#pragma deprecated Use ExtinguishEntity() instead
8.16 stock ExtinguishClient(client)
8.17 {
8.18 return ExtinguishEntity(client);
8.19 @@ -153,6 +155,7 @@
8.20 /**
8.21 * @deprecated
8.22 */
8.23 +#pragma deprecated Use TeleportEntity() instead
8.24 stock TeleportPlayer(client, const Float:origin[3], const Float:angles[3], const Float:velocity[3])
8.25 {
8.26 return TeleportEntity(client, origin, angles, velocity);
9.1 --- a/plugins/include/sourcemod.inc Tue Aug 07 22:03:11 2007 +0000
9.2 +++ b/plugins/include/sourcemod.inc Tue Aug 07 22:11:00 2007 +0000
9.3 @@ -141,6 +141,7 @@
9.4 /**
9.5 * @deprecated Use OnConfigsExecuted() instead.
9.6 */
9.7 +#pragma deprecated Use OnConfigsExecuted() instead
9.8 forward OnServerCfg();
9.9
9.10 /**
10.1 --- a/plugins/include/string.inc Tue Aug 07 22:03:11 2007 +0000
10.2 +++ b/plugins/include/string.inc Tue Aug 07 22:11:00 2007 +0000
10.3 @@ -76,6 +76,7 @@
10.4 * Backwards compatible stock - StrCompare is now strcmp
10.5 * @deprecated Renamed to strcmp
10.6 */
10.7 +#pragma deprecated Use strcmp() instead
10.8 stock StrCompare(const String:str1[], const String:str2[], bool:caseSensitive=true)
10.9 {
10.10 return strcmp(str1, str2, caseSensitive);
10.11 @@ -92,7 +93,7 @@
10.12 */
10.13 stock bool:StrEqual(const String:str1[], const String:str2[], bool:caseSensitive=true)
10.14 {
10.15 - return (StrCompare(str1, str2, caseSensitive) == 0);
10.16 + return (strcmp(str1, str2, caseSensitive) == 0);
10.17 }
10.18
10.19 /**
10.20 @@ -111,6 +112,7 @@
10.21 * Backwards compatibility stock - use strcopy
10.22 * @deprecated Renamed to strcopy
10.23 */
10.24 +#pragma deprecated Use strcopy() instead
10.25 stock StrCopy(String:dest[], destLen, const String:source[])
10.26 {
10.27 return strcopy(dest, destLen, source);
10.28 @@ -230,6 +232,7 @@
10.29 * Backwards compatibility stock - use BreakString
10.30 * @deprecated Renamed to BreakString.
10.31 */
10.32 +#pragma deprecated Use BreakString() instead
10.33 stock StrBreak(const String:source[], String:arg[], argLen)
10.34 {
10.35 return BreakString(source, arg, argLen);
11.1 --- a/plugins/include/usermessages.inc Tue Aug 07 22:03:11 2007 +0000
11.2 +++ b/plugins/include/usermessages.inc Tue Aug 07 22:11:00 2007 +0000
11.3 @@ -29,14 +29,20 @@
11.4 /**
11.5 * @section Message Flags.
11.6 */
11.7 -#define USERMSG_PASSTHRU (1<<0) /**< (DEPRECATED, NO EFFECT) */
11.8 -#define USERMSG_PASSTHRU_ALL (1<<1) /**< (DEPRECATED, NO EFFECT) */
11.9 #define USERMSG_RELIABLE (1<<2) /**< Message will be set on the reliable stream */
11.10 #define USERMSG_INITMSG (1<<3) /**< Message will be considered to be an initmsg */
11.11 +#define USERMSG_BLOCKHOOKS (1<<7) /**< Prevents the message from triggering SourceMod and Metamod hooks */
11.12 +
11.13 +#pragma deprecated Constant has no effect
11.14 +#define USERMSG_PASSTHRU (1<<0) /**< (DEPRECATED, NO EFFECT) */
11.15 +#pragma deprecated Constant has no effect
11.16 +#define USERMSG_PASSTHRU_ALL (1<<1) /**< (DEPRECATED, NO EFFECT) */
11.17 +#pragma deprecated Constant has no effect
11.18 #define USERMSG_BLOCK_MM (1<<4) /**< (DEPRECATED, NO EFFECT) */
11.19 +#pragma deprecated Constant has no effect
11.20 #define USERMSG_BLOCK_SM (1<<5) /**< (DEPRECATED, NO EFFECT) */
11.21 +#pragma deprecated Constant has no effect
11.22 #define USERMSG_BLOCK_ALL (1<<6) /**< (DEPRECATED, NO EFFECT) */
11.23 -#define USERMSG_BLOCKHOOKS (1<<7) /**< Prevents the message from triggering SourceMod and Metamod hooks */
11.24
11.25 /**
11.26 * @endsection