Показать сообщение отдельно
Старый 04.01.2018, 01:31   #1
newsbot
News Bot
 
Аватар для newsbot
 
Регистрация: 20.11.2009
Сообщений: 1,290
Сказал(а) спасибо: 0
Поблагодарили 5 раз(а) в 5 сообщениях
newsbot На верном пути
По умолчанию "Gnomish Shrink Ray" fix with roll

Автор: catterpiler74


<pre style='white-space:pre-wrap;width:81ex'>"Gnomish Shrink Ray" fix with roll

The author assumed that the roll variable would be assigned with a
random value, and then this value would be compared with 3. However, the
priority of the comparison operation is higher than of the assignment
operation (see the table "Operation priorities in C/C++", so the random
number will be compared with 3 first, and then the result of the
comparison (0 or 1) will be written to the roll variable.

Close https://github.com/cmangos/mangos-classic/pull/258

(based on cmangos/mangos-wotlk@c7c1fc302)

Signed-off-by: Xfurry <xfurry.cmangos@outlook.com></pre>


Подробнее...
newsbot вне форума   Ответить с цитированием