Welcome to the Builder Academy

Question case in spell

More
06 Apr 2025 22:28 #10649 by thomas
Replied by thomas on topic case in spell
Code:
if (mag_savingthrow(victim, savetype, 0))
means "if mag_savingthrow() returns something other than 0". It could be written a little longer, but in C this is generally considered unnecessary.
Code:
if (mag_savingthrow(victim, savetype, 0) != 0)

Please Log in or Create an account to join the conversation.

More
07 Apr 2025 00:26 #10650 by Salty
Replied by Salty on topic case in spell
This post on  Stack Exchange  may help you understand the behavior.

Please Log in or Create an account to join the conversation.

Time to create page: 0.199 seconds