1 file changed
+1
-1
lines changedDiff for: src/network/packethandlers/server.cpp
+1-1
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1335 | 1335 |
| |
1336 | 1336 |
| |
1337 | 1337 |
| |
1338 |
| - | |
| 1338 | + | |
1339 | 1339 |
| |
1340 | 1340 |
| |
1341 | 1341 |
| |
|
4 commit comments
HybridDog commentedon Mar 17, 2015
usually mods only should be able to damage the player, e.g. by changing hp, if enable_damage is true
if they need to look for this manually, a lot mods would need to become updated, I think
nerzhul commentedon Mar 17, 2015
No set_hp call is correct. I will propre a do_damage PR and this call must be used by mods, because enable_damage will use it :)
set_hp is more powerful but misused by modders
HybridDog commentedon Mar 17, 2015
If I remember correctly, set_hp only worked for non player entities if damage was disabled.
nerzhul commentedon Mar 17, 2015
l_object.cpp L251
ServerActiveObject *co = getobject(ref);
co->setHP(hp);
No filtering. Everything can be affected by this