• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Debugi - tapestry etc (0.3.5_SVN)

TracerS

New Member
Joined
Jan 18, 2010
Messages
20
Reaction score
0
Witam, ścigałem kiedyś 0.3.5_SVN rev.2260 (chyba) potrzebowałem silnik pod 8.42, chce zrobić serwa pod tego klienta na tym silniku ale zauważyłem ze tapestry itd (itemy, które można wieszać na ścianach - 'Hangable') powodują debugi klienta kiedy chcemy powiesić je na pietrach... np jeżeli nie ma pod ścianą podłogi to wywala debuga, można to jakoś wyłączyć w silniku żeby w ogóle nie dało się ich powiesić albo gdzie mniej więcej znajduje się kod odpowiedzialny za to - skopiował bym sobie z jakiegoś działającego silnika?
 
Trochę sie bawiłem i znalazłem błąd

int32_t Tile::getClientIndexOfThing(const Player* player, const Thing* thing) const
{
if(ground && ground == thing)
return 0;

int32_t n = 0;
if(!ground) <- Dodac
n--; <- Dodac


const TileItemVector* items = getItemList();
 
Back
Top