| Anonymous | Login | Signup for a new account | 14-01-26 18:46 CET | ![]() |
| Main | My View | View Issues | Change Log | Roadmap |
| View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update | |
| 0002238 | SphereServer | executable - linux build | public | 05-11-13 00:13 | 09-11-13 16:55 | |
| Reporter | Awaken | |||||
| Assigned To | Ben | |||||
| Priority | normal | Severity | minor | Reproducibility | always | |
| Status | resolved | Resolution | fixed | |||
| Platform | Linux | OS | Debian | OS Version | Debian 7 32Bits | |
| Product Version | ||||||
| Target Version | Fixed in Version | 0.56c Nightly | ||||
| Summary | 0002238: Different return in Windows and Linux | |||||
| Description | [TYPEDEF t_armor_leather] ON=@Equip IF <LAYER>==4 SRC.MODAR += <muldiv <dArmor>,5,100> ENDIF Armor: Leather armor with 37 armors. The Result in WIndows is 2 but in Linux is 1. 5% of 37 is 1.85 (2) | |||||
| Tags | No tags attached. | |||||
| Nightly Version | Automated (specify build number) | |||||
| Experimental Flags | New_Triggers, WalkCheck, Size_Optimise, DamageTools | |||||
| Option Flags | Command_Sysmsgs, FileCommands, NoItemNaming, NoHouseMuteSpeech, Buffs, NoPrefix | |||||
| Internal Build Number | ||||||
| Attached Files | ||||||
Notes |
|
|
(0001758) darksun84 (reporter) 05-11-13 22:22 |
I don't think it's a bug, the "rounding method" could be different from a compiler to another, so maybe the compiler used for the windows build rounds down while the linux one rounds up ! |
|
(0001761) Ben (manager) 09-11-13 16:55 |
Dark is right on this, both systems use a different methode for Muldiv(). I replaced it with a custom function which will round the number properly, so this should be consistent on both systems |
Issue History |
|||
| Date Modified | Username | Field | Change |
| 05-11-13 00:13 | Awaken | New Issue | |
| 05-11-13 22:22 | darksun84 | Note Added: 0001758 | |
| 09-11-13 16:55 | Ben | Note Added: 0001761 | |
| 09-11-13 16:55 | Ben | Status | new => resolved |
| 09-11-13 16:55 | Ben | Fixed in Version | => 0.56c Nightly |
| 09-11-13 16:55 | Ben | Resolution | open => fixed |
| 09-11-13 16:55 | Ben | Assigned To | => Ben |
| Copyright © 2000 - 2010 MantisBT Group |