Julien PUYDT a écrit : > Kurosu a écrit : > >> 1) over the 3 heterogeneous network games I did, a player always landed >> on a mine; not unplayable, but strangely repetitive >> > > Both player and mine are certainly randomly placed -- I would say the > random function is broken and either gives the same position for both, > or gives mostly the same position. >
Normally, mines, characters and barrels are randomly placed with method PhysicalObj::PutRandomly. I was thinking that it checks that characters are not too close from a mine, but from a first look, I can not find it in the code except if mines are placed after characters. Moreover the random generator is not initialized with a key so, each time you start Wormux, it should begin the same sequence of "random" numbers... For the random position, there is another problem. All characters of a team are randomly placed, then all characters of another team, then ... The result is that if you have 4 teams and are playing on a small map, nearly all characters of the last team would be placed on top of a character of another team. Matt (gentildemon) _______________________________________________ Wormux-dev mailing list Wormux-dev@gna.org https://mail.gna.org/listinfo/wormux-dev