• Ardyssian@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    23
    ·
    edit-2
    9 days ago

    There’s a thread on Reddit showcasing some hilarious Code Comments within the Generals Codebase: https://old.reddit.com/r/commandandconquer/comments/1izpkmh/funny_generals_source_code_comments/

    Examples:

    // Assumption: Things with a KINDOF_STRUCTURE flag can never be built from 
    // a factory (ProductionUpdateInterface), because the building can't move
    // out of the factory. When we do our Starcraft port and have flying Terran
    // buildings, we'll have to change this ;-)
    // Remember: To ASSUME makes an ASS out of U and ME. 
    Player.cpp
    
    
    // HERE WOULD BE A GREAT PLACE FOR AN IDIOT TEST:
    

    // REJECT SIMULATION NODES THAT ARE OFF SCREEN!!! // HERE WOULD BE A GREAT PLACE FOR AN IDIOT TEST: // REJECT SIMULATION NODES THAT ARE OFF SCREEN!!! W3DTerrainVisual.cpp

    // // force the tree control to redraw, it seems to have problems updating // the plus signs, lame ass Microsoft // HeirarchyView.cpp

    ; String is returned by const for a reason. Bad things will happen ; if you modify it. You have been warned. locale.cpp

    // We need to be able to grab w3d’s from a localization dir, since Germany hates exploding people units. W3DFileSystem.cpp

    // I can’t take it any more. Let the record show that I think the UpgradeMux multiple inheritence is CRAP. getAutoHealBehaviorModuleData()->m_upgradeMuxData.muxDataProcessUpgradeRemoval(getObject()); AutoHealBahaviour.h