- little performance improvement on the sand simulator
git-svn-id: http://mc-server.googlecode.com/svn/trunk@151 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
parent
c6b4ee8c9f
commit
c5fab7e7c8
@ -75,3 +75,10 @@ bool cSandSimulator::IsPassable( char a_BlockID )
|
|||||||
|| IsBlockLava(a_BlockID);
|
|| IsBlockLava(a_BlockID);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void cSandSimulator::WakeUp( int a_X, int a_Y, int a_Z )
|
||||||
|
{
|
||||||
|
//Nothing else needs to be simulated :D (Bugs not included :s)
|
||||||
|
AddBlock( a_X, a_Y+1, a_Z );
|
||||||
|
AddBlock( a_X, a_Y, a_Z );
|
||||||
|
}
|
||||||
|
@ -12,6 +12,7 @@ public:
|
|||||||
~cSandSimulator();
|
~cSandSimulator();
|
||||||
|
|
||||||
virtual void Simulate( float a_Dt );
|
virtual void Simulate( float a_Dt );
|
||||||
|
virtual inline void WakeUp( int a_X, int a_Y, int a_Z );
|
||||||
|
|
||||||
virtual inline bool IsAllowedBlock( char a_BlockID );
|
virtual inline bool IsAllowedBlock( char a_BlockID );
|
||||||
virtual inline bool IsPassable( char a_BlockID );
|
virtual inline bool IsPassable( char a_BlockID );
|
||||||
|
Loading…
Reference in New Issue
Block a user