Random Chitchat 2012-2016
You're mixing datatypes - Int64, long...
Thanks given by:
Int64 GetWeatherInterval(void) const { return m_WeatherInterval; }
///////////////////////////////////////////////////////////////
void SetWeatherInterval(int a_WeatherInterval)
{
    m_WeatherInterval = a_WeatherInterval;
}
this? becouse when i use Int64 on both i get errors.
Thanks given by:
You need to use the same type on both, since the member variable is of one type. If you don't, you run the risk of getting shortened data, and, on some architectures, crashes due to misaligned access.

Why are you using Int64 at all? in my cWorld (rev 1568) the variable m_WeatherInterval is of type int, so why not use int?
Thanks given by:
Well I looked at the SetTimeOfDay function and it was Int64 there so i tried that and it worked. I wasn't sure if it would cause any trouble.
Thanks given by:
SetTimeOfDay() sets the m_TimeOfDay, which is Int64, so it's correct. m_WeatherInterval is an int, so use an int and everything will be fine.
Thanks given by:
Shall i commit it? Maybe also with the cClientHandle::SendBlockChange function?
Thanks given by:
Please do. And don't forget to update the Bindings (AllToLua.bat)
Thanks given by:
I guess I'm free now, so what should I do next? Which feature to implement / fix?
Thanks given by:
Maybe this one?
Thanks given by:
(06-12-2013, 04:11 AM)xoft Wrote: I guess I'm free now, so what should I do next? Which feature to implement / fix?
Maybe add arrows and mob AI.
Thanks given by:




Users browsing this thread: 99 Guest(s)