Results 1 to 6 of 6

Thread: A Little bug :>

  1. #1
    Lesser Knight
    Join Date
    Apr 2011
    Location
    Germany
    Posts
    32

    Default A Little bug :>

    I've got a bug or anything other but it dont work :> i want that all ammo instaces have their own angle but all use the same ?!
    Attached Files Attached Files

  2. #2
    ClanLib Developer
    Join Date
    May 2007
    Posts
    1,824

    Default

    Please can you use .zip ,I don't use .rar because it's closed source.

  3. #3
    ClanLib Developer
    Join Date
    Sep 2006
    Location
    Bergen, Norway
    Posts
    588

    Default

    I havent looked at your source, but are you using 2.3 ? I had the same problem a few months ago, and I think it was fixed in clanlib 2.3 regarding sprite cloning.

  4. #4
    Lesser Knight
    Join Date
    Apr 2011
    Location
    Germany
    Posts
    32

    Default

    i use 2.3.1 the newst an yes its sprite cloning i dont know why ? :S i could cry x'D no joke
    but its ARRG :S
    Attached Files Attached Files

  5. #5
    ClanLib Developer
    Join Date
    May 2007
    Posts
    1,824

    Default

    Change...
    Code:
    //ammo_1::ammo_1(CL_Sprite &cAmmo){
    //	sAmmo_1 = cAmmo;
    //}
    
    ammo_1::ammo_1(CL_Sprite &cAmmo){
    	sAmmo_1.clone(cAmmo);
    }
    Else it refers to the same object. (Because we treat CL_Sprite as a handle to an object, not the actual object)


    In
    void ship_1::Shoot(){ ... }
    Comment out: Do = false;

  6. #6
    Lesser Knight
    Join Date
    Apr 2011
    Location
    Germany
    Posts
    32

    Default

    Thank it work the line with bool do was only tests for remove the bug, thank you

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •