View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001125 | Ecere SDK | ec | public | 2017-03-21 20:37 | 2017-03-21 20:37 |
Reporter | CaptainBlackton | Assigned To | |||
Priority | high | Severity | major | Reproducibility | always |
Status | new | Resolution | open | ||
Platform | x86_64:linux | OS | Linux Mint | OS Version | - |
Product Version | 0.44 Ryoan-ji | ||||
Summary | 0001125: += is missing parentheses in generated code | ||||
Description | Where: satiation is property int hp is property int This line of code: unit.satiation -= unit.hp / 100 + 2; Generates this line of generated code: __ecereProp_Unit_Set_satiation(unit, __ecereProp_Unit_Get_satiation(unit) - __ecereProp_ResourceObject_Get_hp(unit) / 100 + 2) Note that it's adding on the 2 at the end AFTER doing the subtraction, since the parentheses are missing | ||||
Tags | No tags attached. | ||||
Date Modified | Username | Field | Change |
---|---|---|---|
2017-03-21 20:37 | CaptainBlackton | New Issue |