1. Список говнокодов пользователя BlaZe

    Всего: 3

  2. C++ / Говнокод #9573

    +1009

    1. 01
    2. 02
    3. 03
    4. 04
    5. 05
    6. 06
    7. 07
    8. 08
    9. 09
    10. 10
    11. 11
    12. 12
    13. 13
    14. 14
    15. 15
    16. 16
    17. 17
    18. 18
    19. 19
    20. 20
    21. 21
    22. 22
    #define STRING_REF char*
    #define STRING_ARRAY_REF char**
    #define STRING_ARRAY_ARRAY_REF char***
    
    #define INT_ARRAY_REF int*
    #define INT_ARRAY_ARRAY_REF int**
    #define INT_ARRAY_3D_REF int***
    #define INT_ARRAY_4D_REF int****
    
    #define BYTE_ARRAY_REF signed char*
    #define BYTE_ARRAY_ARRAY_REF signed char**
    #define BYTE_ARRAY_3D_REF signed char***
    
    #define UNSIGNED_BYTE_ARRAY_REF unsigned char*
    #define UNSIGNED_BYTE_ARRAY_ARRAY_REF unsigned char**
    #define UNSIGNED_BYTE_ARRAY_3D_REF unsigned char***
    
    #define SHORT_ARRAY_REF short*
    #define SHORT_ARRAY_ARRAY_REF short**
    #define SHORT_ARRAY_3D_REF short***
    #define SHORT_ARRAY_4D_REF short****
    #define SHORT_ARRAY_5D_REF short*****

    Без комментариев

    BlaZe, 29 Февраля 2012

    Комментарии (15)
  3. C++ / Говнокод #7356

    +147

    1. 01
    2. 02
    3. 03
    4. 04
    5. 05
    6. 06
    7. 07
    8. 08
    9. 09
    10. 10
    11. 11
    12. 12
    13. 13
    14. 14
    15. 15
    16. 16
    17. 17
    18. 18
    19. 19
    20. 20
    21. 21
    22. 22
    23. 23
    24. 24
    25. 25
    26. 26
    27. 27
    28. 28
    29. 29
    30. 30
    31. 31
    32. 32
    33. 33
    34. 34
    35. 35
    36. 36
    37. 37
    38. 38
    39. 39
    40. 40
    41. 41
    42. 42
    43. 43
    44. 44
    45. 45
    46. 46
    47. 47
    48. 48
    49. 49
    50. 50
    51. 51
    52. 52
    53. 53
    54. 54
    55. 55
    56. 56
    57. 57
    58. 58
    59. 59
    60. 60
    61. 61
    62. 62
    63. 63
    64. 64
    65. 65
    66. 66
    67. 67
    68. 68
    69. 69
    70. 70
    71. 71
    72. 72
    73. 73
    74. 74
    75. 75
    76. 76
    77. 77
    78. 78
    79. 79
    80. 80
    81. 81
    82. 82
    83. 83
    84. 84
    85. 85
    86. 86
    87. 87
    88. 88
    89. 89
    90. 90
    91. 91
    92. 92
    93. 93
    94. 94
    95. 95
    96. 96
    97. 97
    int offset_800=0;
    	if(SCREEN_WIDTH == 800) offset_800 = 20;
    
    	addItem(TNM_GAMELOFT_LOG_GREEN_ITEM, done, complete_log[lang][0], TNM_ItemCoords[TNM_GAMELOFT_LOG_GREEN_ITEM][0]*((float)1200/(float)SCREEN_WIDTH)-35-offset_800/*-offset_shtamp*3*/, TNM_ItemCoords[TNM_GAMELOFT_LOG_GREEN_ITEM][1]*((float)720/(float)SCREEN_HEIGHT)/*-offset_shtamp*3*/, -1, ITEM_INVISIBLE)
    		->attachTo2dItem(pItemListBG);
    	addItem(TNM_GAMELOFT_LOG_RED_ITEM, done, complete_log[lang][1], TNM_ItemCoords[TNM_GAMELOFT_LOG_RED_ITEM][0]*((float)1200/(float)SCREEN_WIDTH)-35-offset_800/*-offset_shtamp*3*/, TNM_ItemCoords[TNM_GAMELOFT_LOG_RED_ITEM][1]*((float)720/(float)SCREEN_HEIGHT)/*-offset_shtamp*3*/, -1, ITEM_INVISIBLE)
    		->attachTo2dItem(pItemListBG);
    	
    //#ifdef WIN32
    
    	addItem(TNM_CHEAT_WIN, main_all, 30, TNM_ItemCoords[TNM_CHEAT_WIN][0],TNM_ItemCoords[TNM_CHEAT_WIN][1], 31, ITEM_INVISIBLE);
    	addItem(TNM_CHEAT_LOSE, main_all, 30, TNM_ItemCoords[TNM_CHEAT_LOSE][0],TNM_ItemCoords[TNM_CHEAT_LOSE][1], 31, ITEM_INVISIBLE);
    //#endif
         int offY=0;
    	int offset=0,
    		offsetmailX=0;
    	
    	if(SCREEN_WIDTH ==800||SCREEN_WIDTH == 1024)
    		offset=2;
    	
    	if(SCREEN_WIDTH==1366||SCREEN_WIDTH == 1440){
    		offY=4;
    		offset=2;
    	}
    	if( SCREEN_WIDTH==1680)
    	{ 
    		offY=7;
    		offset=2;
    		offsetmailX=60;
    	}
    		if( SCREEN_WIDTH==1920)
    	{ 
    		offY=7;
    		offset=5;
    		offsetmailX=60;
    	}
    
    		int y_800=0;
    
    		if(SCREEN_WIDTH == 1440) offsetmailX = 20;
    		if(SCREEN_HEIGHT == 800) {
    			offset = 2;
    			offY = 1;
    			
    		}
    		if(SCREEN_WIDTH == 2560) offset=2;
    		if(SCREEN_WIDTH == 1024) offY+=1;
    		if(SCREEN_WIDTH == 800&&(Text::getInstance().getLanguage()== Text::LANG_SC||Text::getInstance().getLanguage()== Text::LANG_KR)) {
    			offY-=1;
    			y_800 = 3;
    		}
    
    		
    
    		if((SCREEN_WIDTH == 1680||SCREEN_HEIGHT == 1080)&&(Text::getInstance().getLanguage()== Text::LANG_SC||Text::getInstance().getLanguage()== Text::LANG_KR)){
    			//offset-=2;
    			offY-=2;
    		}
    		if((SCREEN_HEIGHT == 1200)&&(Text::getInstance().getLanguage()== Text::LANG_SC||Text::getInstance().getLanguage()== Text::LANG_KR))
    			offY-=2;
    
    	addText(TNM_MESSAGE_SENDER_ITEM, STR_SENDER, SPRITE_FONT_S2_EG, TNM_ItemCoords[TNM_MESSAGE_SENDER_ITEM][0], TNM_ItemCoords[TNM_MESSAGE_SENDER_ITEM][1]/*-offY*/, ITEM_INVISIBLE, LEFT)
    		->attachTo2dItem(pItemListBG);
    	
    	
    
    	addText(TNM_MESSAGE_SUBJECT_ITEM, STR_SUBJECT, SPRITE_FONT_S2_EG, TNM_ItemCoords[TNM_MESSAGE_SUBJECT_ITEM][0], TNM_ItemCoords[TNM_MESSAGE_SUBJECT_ITEM][1]-offset-offY*1.5f+y_800, ITEM_INVISIBLE, LEFT)
    		->attachTo2dItem(pItemListBG);
    	addText(TNM_MESSAGE_TIME_ITEM, STR_RECEIVED, SPRITE_FONT_S2_EG, TNM_ItemCoords[TNM_MESSAGE_TIME_ITEM][0], TNM_ItemCoords[TNM_MESSAGE_TIME_ITEM][1]-offY*1.07f,  ITEM_INVISIBLE, LEFT)
    		->attachTo2dItem(pItemListBG);
    	//addText(TNM_MAIL_TITLE_ITEM, "Sender: \nRecieved: \nSubject: ", fontS, TNM_ItemCoords[TNM_MAIL_TITLE_ITEM][0], TNM_ItemCoords[TNM_MAIL_TITLE_ITEM][1], ITEM_INVISIBLE, LEFT|TOP);
    	int space = lang == Text::LANG_IT ? 10 : 0;
    	if(lang == Text::LANG_KR)
    		space = 30;
    	int spaceY=0;
    
    	
    	if(SCREEN_WIDTH!=1680&&SCREEN_WIDTH!=1920)
    		switch( pGame->getCurrentLanguage() )
    	{
    	case Text::LANG_KR:
    		spaceY = 2;
    		break;
    	case Text::LANG_SC:
    		spaceY = 2;
    		break;
    	case Text::LANG_JP:
    		spaceY = 2;
    		break;
    	}
    
    	addText(TNM_MAIL_TITLE1_ITEM, m_mailTitle, SPRITE_FONT_S2_EG, TNM_ItemCoords[TNM_MAIL_TITLE1_ITEM][0] + space, TNM_ItemCoords[TNM_MAIL_TITLE1_ITEM][1], ITEM_INVISIBLE, LEFT|TOP)
    		->attachTo2dItem(pItemListBG);
    	addText(TNM_MAIL_TITLE2_ITEM, m_mailTitle, SPRITE_FONT_S2_EG, TNM_ItemCoords[TNM_MAIL_TITLE2_ITEM][0] + space, TNM_ItemCoords[TNM_MAIL_TITLE2_ITEM][1]-offY*1.07f, ITEM_INVISIBLE, LEFT|TOP)
    		->attachTo2dItem(pItemListBG);
    	addText(TNM_MAIL_TITLE3_ITEM, m_mailTitle, SPRITE_FONT_S2_EG, TNM_ItemCoords[TNM_MAIL_TITLE3_ITEM][0] + space, TNM_ItemCoords[TNM_MAIL_TITLE3_ITEM][1]-offset-offY*1.5f+spaceY, ITEM_INVISIBLE, LEFT|TOP)
    		->attachTo2dItem(pItemListBG);

    Еще один малый кусок. По аналогии с выложеным ранее.

    BlaZe, 27 Июля 2011

    Комментарии (16)
  4. C++ / Говнокод #7338

    +170

    1. 01
    2. 02
    3. 03
    4. 04
    5. 05
    6. 06
    7. 07
    8. 08
    9. 09
    10. 10
    11. 11
    12. 12
    13. 13
    14. 14
    15. 15
    16. 16
    17. 17
    18. 18
    19. 19
    20. 20
    21. 21
    22. 22
    23. 23
    24. 24
    25. 25
    26. 26
    27. 27
    28. 28
    29. 29
    30. 30
    31. 31
    if(SCREEN_WIDTH==800)
    			{
    				fm1 = 62;
    				fm2 = 61;
    				top = 86;
    			}
    
    			if(SCREEN_WIDTH==1024){
    
    				    fm1 = 27;
    					fm2 = 26;
    					top = 78;
    			}
    			if(SCREEN_WIDTH==1680||SCREEN_WIDTH==1920){
    
    				       fm1 = 72;
    			           fm2 = 73;
    					   top = 81;
    			}
    			if(SCREEN_WIDTH==1280 || SCREEN_WIDTH == 2560){
    
    				       fm1 = 76;
    					   fm2 = 75;
    					   top = 77;
    			}
    				
    			if(SCREEN_WIDTH == 1366 || SCREEN_WIDTH == 1440){
    			        fm1=  67;
    			        fm2=  66;
    					top = 79;
    			}

    Это капля в море гавнокода одного из проектов на который меня посадили.
    Чуть менее 1000 багов открыто только по GUI.
    Все это дело рук одной девушки))

    BlaZe, 25 Июля 2011

    Комментарии (42)