View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0002238SphereServerexecutable - linux buildpublic05-11-13 00:1309-11-13 16:55
ReporterAwaken 
Assigned ToBen 
PrioritynormalSeverityminorReproducibilityalways
StatusresolvedResolutionfixed 
PlatformLinuxOSDebianOS VersionDebian 7 32Bits
Product Version 
Target VersionFixed in Version0.56c Nightly 
Summary0002238: 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)
TagsNo tags attached.
Nightly VersionAutomated (specify build number)
Experimental FlagsNew_Triggers, WalkCheck, Size_Optimise, DamageTools
Option FlagsCommand_Sysmsgs, FileCommands, NoItemNaming, NoHouseMuteSpeech, Buffs, NoPrefix
Internal Build Number
Attached Files

- Relationships

-  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
Powered by Mantis Bugtracker