Jump to content

DeadSkull7

Inactive Member
  • Posts

    14
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by DeadSkull7

  1. 2 hours ago, Mali61 said:

    -And push every time ?

    Wrong! Not every time if ch isn't exist in vector control:

    find(looked.begin(), looked.end(), ch) == looked.end()

    So if player open shop in first time you push him in vector, if open again ? He will be existed so vector size don't change .. ?

  2. Good job but i think if same player open shop don't increment seens counter will be better.Also, why you use vector ? And push every time ? in you case you don't want to chack if player opened shop or no to increment counter ! You can use single counter not vector.

    int counter = 0;

     

  3. in cmd_general.cpp search 

    case 'm':	// make
    			if (0 != arg2[0])
    			{
    				while (true == Cube_make(ch))
    					dev_log (LOG_DEB0, "cube make success");
    			}
    			else
    				Cube_make(ch);
    			break;

     

    Replace with 

    case 'm':	// make
    			if (0 != arg2[0])
    			{
    				str_to_number(count, arg2);
    				Cube_make(ch,count);
                }
                else  Cube_make(ch,count);
                break;

    And check cube.h & cube.cpp again 

     

    Besr Wishes 

×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.