MantisBT - opensim
View Issue Details
0001152opensim[REGION] Scripting Enginepublic2008-05-05 22:222008-05-26 01:19
rjs 
melanie 
normalminoralways
closedfixed 
 
 
Grid (Multiple Regions per Sim)
BasicPhysics
Mono / Linux32
0001152: Error Number: CS0029, 'Cannot implicitly convert type `int' to `bool''
Example:

set_flight()
{
    vector pos = llGetPos();
    float ground = llGround(<0,0,0>);
    if(llGetAgentInfo(llGetOwner()) & AGENT_FLYING)
    {
        move = 1;
        if(hovermode && ((pos.z > 55) && (pos.z > (ground + 35))))
        {
            llSetForce(<0,0,9.8> * llGetMass(), FALSE);
        }
        else
        {
            llSetForce(<0,0,0>, FALSE);
        }
    }
    else
    {
        move = 0;
        llSetForce(<0,0,0>, FALSE);
    }
    // Display position over object if position mode is on
    if(posmode)
    {
        llSetText("<" + (string)((integer)pos.x) + ", " + (string)((integer)pos.y) + ", " + (string)((integer)pos.z) + "> \n \n \n", <1,1,1>, 1);
    }
    else
    {
        llSetText("", <0,0,0>, 0);
    }
}
No tags attached.
patch 9026_[4583]_lsl_intreturns.patch (40,769) 2008-05-08 16:22
http://opensimulator.org/mantis/file_download.php?file_id=354&type=bug
Issue History
2008-05-05 22:22rjsNew Issue
2008-05-05 22:22rjsSVN Revision => 4532
2008-05-05 22:22rjsRun Mode => Grid (Multiple Regions per Sim)
2008-05-05 22:22rjsPhysics Engine => BasicPhysics
2008-05-05 22:22rjsEnvironment => Mono / Linux32
2008-05-06 00:21melanieStatusnew => assigned
2008-05-06 00:21melanieAssigned To => melanie
2008-05-06 00:22melanieStatusassigned => acknowledged
2008-05-08 16:22melanieFile Added: 9026_[4583]_lsl_intreturns.patch
2008-05-08 16:23melanieNote Added: 0001973
2008-05-08 16:23melanieStatusacknowledged => patch ready
2008-05-09 03:21cfkNote Added: 0001979
2008-05-09 03:21cfkStatuspatch ready => resolved
2008-05-09 03:21cfkResolutionopen => fixed
2008-05-26 01:19cfkStatusresolved => closed

Notes
(0001973)
melanie   
2008-05-08 16:23   
Patch fixes the pesky "Cannot implicitly convert to bool" issue for function returns
(0001979)
cfk   
2008-05-09 03:21   
Committed in r4598