From 63bd1976ccab084a36ea9a22b84af64c824d5437 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Sat, 1 Sep 2012 21:31:20 +0000 Subject: Added a Player parameter to OnUpdatedSign and OnUpdatingSign Lua callbacks and to the cWorld:UpdateSign method (http://forum.mc-server.org/showthread.php?tid=464&pid=4393#pid4393) git-svn-id: http://mc-server.googlecode.com/svn/trunk@814 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cPlugin_Squirrel.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'source/cPlugin_Squirrel.cpp') diff --git a/source/cPlugin_Squirrel.cpp b/source/cPlugin_Squirrel.cpp index bfd5a7037..8b13718a7 100644 --- a/source/cPlugin_Squirrel.cpp +++ b/source/cPlugin_Squirrel.cpp @@ -337,7 +337,8 @@ bool cPlugin_Squirrel::OnWeatherChanged(cWorld * a_World) bool cPlugin_Squirrel::OnUpdatingSign( cWorld * a_World, int a_BlockX, int a_BlockY, int a_BlockZ, - AString & a_Line1, AString & a_Line2, AString & a_Line3, AString & a_Line4 + AString & a_Line1, AString & a_Line2, AString & a_Line3, AString & a_Line4, + cPlayer * a_Player ) { cCSLock Lock(m_CriticalSection); @@ -352,7 +353,8 @@ bool cPlugin_Squirrel::OnUpdatingSign( a_Line1, a_Line2, a_Line3, - a_Line4 + a_Line4, + a_Player ); } @@ -363,7 +365,8 @@ bool cPlugin_Squirrel::OnUpdatingSign( bool cPlugin_Squirrel::OnUpdatedSign( cWorld * a_World, int a_BlockX, int a_BlockY, int a_BlockZ, - const AString & a_Line1, const AString & a_Line2, const AString & a_Line3, const AString & a_Line4 + const AString & a_Line1, const AString & a_Line2, const AString & a_Line3, const AString & a_Line4, + cPlayer * a_Player ) { cCSLock Lock(m_CriticalSection); @@ -378,6 +381,7 @@ bool cPlugin_Squirrel::OnUpdatedSign( a_Line1, a_Line2, a_Line3, - a_Line4 + a_Line4, + a_Player ); } -- cgit v1.2.3