View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
---|---|---|---|---|---|---|---|---|---|
0003090 | Spring engine | Lua | public | 2012-05-14 19:32 | 2012-05-16 01:45 | ||||
Reporter | jseah | ||||||||
Assigned To | Kloot | ||||||||
Priority | normal | Severity | minor | Reproducibility | always | ||||
Status | resolved | Resolution | fixed | ||||||
Product Version | 88.0 | ||||||||
Target Version | Fixed in Version | 89.0 | |||||||
Summary | 0003090: AllowWeaponTarget does not work with multiple gadgets | ||||||||
Description | Gadget A returns true Gadget B returns false Unit still fires. This is a problem because gadgets will return true by default. (don't want to block firing) Thus only one gadget can use AllowWeaponTarget in a mod. | ||||||||
Tags | No tags attached. | ||||||||
Checked infolog.txt for Errors | |||||||||
Attached Files |
|
![]() |
|
Rafal99 (reporter) 2012-05-15 05:49 |
The issue is that in default gadget handler (gadgets.lua) callins AllowWeaponTargetCheck and AllowWeaponTarget return false only if ALL gadgets return false. While all other AllowXYZ callins return false even if ONLY ONE gadget returns false. So there is inconsistency, no idea if it is intended and why. Also see here: http://code.google.com/p/zero-k/source/detail?r=6526 |
![]() |
|||
Date Modified | Username | Field | Change |
---|---|---|---|
2012-05-14 19:32 | jseah | New Issue | |
2012-05-15 05:49 | Rafal99 | Note Added: 0008698 | |
2012-05-16 01:45 | Kloot | Status | new => resolved |
2012-05-16 01:45 | Kloot | Fixed in Version | => 89.0 |
2012-05-16 01:45 | Kloot | Resolution | open => fixed |
2012-05-16 01:45 | Kloot | Assigned To | => Kloot |