[CF-Devel] python setquantity()

crossfire-devel at archives.real-time.com crossfire-devel at archives.real-time.com
Tue Jul 20 20:43:30 CDT 2004


After hearing of a player having trouble exchanging a large sum of
imperials I asked Leaf to track the error message and found that the
python code that handles quantity has an arbitrary cap of 100000

here is the code:

 /* I used an arbitrary bound of 100k here */
    if (value > 100000)
    {
        printf( "(set-quantity): Value must be lower than 100000\n");
        return NULL;
    }

I would like to raise this up a bit if there are no issues - it is
limiting whan dealing with making change for money especially.  also
'value' here is an int - hopefully this is large enough but perhaps it
is not?


_______________________________________________
crossfire-devel mailing list
     
     crossfire-devel at lists.real-time.com
     
     
     https://mailman.real-time.com/mailman/listinfo/crossfire-devel
     
     
    


More information about the crossfire mailing list