- 
        
        
                +6        
        
                            - 01
 - 02
 - 03
 - 04
 - 05
 - 06
 - 07
 - 08
 - 09
 - 10
 - 11
 - 12
 - 13
 - 14
 - 15
 - 16
 - 17
 - 18
 - 19
 - 20
 - 21
 - 22
 - 23
 - 24
 - 25
 - 26
 - 27
 - 28
 - 29
 - 30
 - 31
 - 32
 - 33
 - 34
 - 35
 - 36
 - 37
 - 38
 - 39
 - 40
 - 41
 - 42
 - 43
 - 44
 - 45
 - 46
 - 47
 - 48
 - 49
 - 50
 - 51
 - 52
 - 53
 - 54
 - 55
 - 56
 - 57
 - 58
 - 59
 - 60
 - 61
 - 62
 - 63
 - 64
 - 65
 - 66
 - 67
 - 68
 - 69
 - 70
 - 71
 - 72
 - 73
 - 74
 - 75
 - 76
 - 77
 - 78
 - 79
 - 80
 - 81
 - 82
 - 83
 - 84
 - 85
 - 86
 - 87
 - 88
 - 89
 - 90
 - 91
 - 92
 
                        #include <iostream>
#include <conio.h>
#include <clocale>
using namespace std;
int files; int disc_D(); int disc_E(); int disc_C();
int resursefunction()
{char s;
  cout << "Выберите диск" << endl;
  cout <<"1-D:\\" << endl;
  cout <<"2-C:\\" << endl;
  cout <<"3-E:\\" << endl;
  cout <<"0 - рабочий стол" << endl;
  cin >> s;
  if(s == '1') return disc_D();
  if(s == '2') return disc_C();
  if(s == '3') return disc_E();
  if(s == '0') return main();
  _getch();}
int main()
{ char vibor;
  setlocale( LC_ALL, "Russian" );
  cout << "\t\t\t\tРабочий стол" << endl;
  cout << "\n\n";
  cout << "1-Управление ресурсами" << endl;
  cout << "2-Программы" << endl;
  cout << "3-Игры" << endl;
  cout << "4-Выход из системы" << endl;
  cin >> vibor;
  if(vibor == '1') resursefunction();
  _getch();
  return main();}
int disc_D()
{ int res, a;
  char vv;
  cout << "D:\\" << endl;
  cout << "На диске" << endl;
  cout << "5 - папок" << endl;
  cout << files << " - файлов" << endl;
  cout << "1 - создать файл" << endl;
  cout << "2 - удалить файл" << endl;
  cout << "0 - назад" << endl;
  cin >> vv;
  if(vv == '1')
  {cout << "Введите сколько создать файлов"; cin >> a; res = files + a;
   res = files + a;}
  if(vv == '2')
  {cout << "Введите сколько удалить файлов"; cin >> a; res = files - a;
   res = files - a;}
  if(vv == '0') return resursefunction();
  files = res;
  return disc_D();}
int disc_E()
{
  int res, a;
  char vv;
  cout << "E:\\" << endl;
  cout << "На диске" << endl;
  cout << "7 - папок" << endl;
  cout << files << " - файлов" << endl;
  cout << "1 - создать файл" << endl;
  cout << "2 - удалить файл" << endl;
  cout << "0 - назад" << endl;
  cin >> vv;
  if(vv = '1')
  {cout << "Введите сколько создать файлов"; cin >> a; res = files + a;
   res = files + a;}
  if(vv == '2')
  {cout << "Введите сколько удалить файлов"; cin >> a; res = files - a;
   res = files - a;}
  if(vv == '0') return resursefunction();
  files = res;
  return disc_E();}
int disc_C()
{int res, a;
  char vv;
  cout << "C:\\" << endl;
  cout << "На диске" << endl;
  cout << "5 - папок" << endl;
  cout << files << " - файлов" << endl;
  cout << "1 - создать файл" << endl;
  cout << "2 - удалить файл" << endl;
  cout << "0 - назад" << endl;
  cin >> vv;
  if(vv = '1')
  {cout << "Введите сколько создать файлов"; cin >> a; res = files + a;
   res = files + a;}
  if(vv == '2')
  { cout << "Введите сколько удалить файлов"; cin >> a; res = files - a;
   res = files - a; }
  if(vv == '0') return resursefunction();
  files = res;
  return disc_C();}
                                     
        
            Еще нашел на форумах. К сожалению форматирование пришлось убить, иначе оно не помещалось целиком
        
        
            
 pelmenka,
            23 Декабря 2013
        
        
        
         
        - 
        
        
                +13        
        
                            - 01
 - 02
 - 03
 - 04
 - 05
 - 06
 - 07
 - 08
 - 09
 - 10
 - 11
 - 12
 
                        if (axis[0] == vector[0] && axis[1] == vector[1] && axis[2] == vector[2])
   {
      this->anglex = 0.0f;
   }
   else if (vector[1] >= 0.0f)
   {
      this->anglex = 360.0f*(GLfloat)acos(VectorMathf::dotProductf(axis, vector))/(2.0f*PIf);
   }
   else
   {
      this->anglex = -360.0f*(GLfloat)acos(VectorMathf::dotProductf(axis, vector))/(2.0f*PIf);
   }
                                     
        
            Часть либы ES3D (http://sourceforge.net/projects/es3d/).
Кто не понял в чем прикол - все переменные имеют тип float.
        
        
            
 Pythoner,
            23 Декабря 2013
        
        
        
         
        - 
        
        
                +64        
        
                            - 01
 - 02
 - 03
 - 04
 - 05
 - 06
 - 07
 - 08
 - 09
 - 10
 - 11
 - 12
 - 13
 - 14
 
                        int message2 = -1;
      for (int i = 0; i < 5; i++)
      {
          QFile f;
          f.setFileName(QString("/var/log/messages.") + QString::number(i));
          if (f.exists())
          {
              message2 = i;
              break;
          }
      }
      if (message2 != -1 )
        QFile::copy(QString("/var/log/messages.")+QString::number(message2), QString(NMP_DATA_DIR) + QString("messages.") +  QString::number(message2) +"-"+ _section);
                                     
        
            Пытается скопировать все файлы /var/log/messages, messages.0, ...
        
        
            
 leotrubach,
            19 Декабря 2013
        
        
        
         
        - 
        
        
                +10        
        
                            - 01
 - 02
 - 03
 - 04
 - 05
 - 06
 - 07
 - 08
 - 09
 - 10
 - 11
 - 12
 - 13
 - 14
 - 15
 - 16
 - 17
 - 18
 - 19
 - 20
 - 21
 - 22
 - 23
 - 24
 - 25
 - 26
 - 27
 - 28
 - 29
 - 30
 - 31
 - 32
 - 33
 - 34
 - 35
 - 36
 - 37
 - 38
 - 39
 - 40
 - 41
 - 42
 - 43
 - 44
 - 45
 - 46
 - 47
 - 48
 - 49
 - 50
 - 51
 - 52
 - 53
 - 54
 - 55
 - 56
 - 57
 - 58
 - 59
 - 60
 - 61
 - 62
 - 63
 - 64
 - 65
 - 66
 - 67
 - 68
 - 69
 - 70
 - 71
 - 72
 - 73
 - 74
 - 75
 - 76
 - 77
 - 78
 - 79
 - 80
 - 81
 - 82
 - 83
 - 84
 - 85
 - 86
 - 87
 - 88
 - 89
 - 90
 - 91
 - 92
 - 93
 - 94
 - 95
 
                        #include <iostream>
#include <list>
#include <queue>
#include <memory>
#include <mutex>
#include <condition_variable>
#include <type_traits>
#include <assert.h>
using namespace std;
template<class Data>
class UnboundedQueueForNonThrowMovable
{
	static_assert(std::is_nothrow_move_constructible<Data>::value, "Data must be nonthrow movable type.");
	static_assert(!std::is_array<Data>::value, "Data must not be c-array.");
	
public:
	typedef Data value_type;
	
private:
	typedef std::queue<Data, std::list<Data>> Queue;
	typedef std::unique_lock<std::mutex> Lock;
	Queue _queue;
	std::mutex _lockQueue;
	std::condition_variable _pushToQueue;
	
	UnboundedQueueForNonThrowMovable(const UnboundedQueueForNonThrowMovable&) = delete;
	UnboundedQueueForNonThrowMovable(UnboundedQueueForNonThrowMovable&&) = delete;
	UnboundedQueueForNonThrowMovable& operator=(const UnboundedQueueForNonThrowMovable&) = delete;
	UnboundedQueueForNonThrowMovable& operator=(UnboundedQueueForNonThrowMovable&&) = delete;
public:
	UnboundedQueueForNonThrowMovable(void){}
	
	void push(Data&& data)
	{
		Lock lockerQueue(this->_lockQueue);
		this->_queue.push(std::move(data));
		this->_pushToQueue.notify_all();//_condition.notify_one(); most optimal, but can cause deadlock.
	}
	
	void push(Data& data)
	{
		this->push(std::move(data));
	}
	
	bool emptyUnstable(void) const
	{
		Lock lockerQueue(this->_lockQueue);
		return this->_queue.empty();
	}
	
	Data pop(void)
	{
		Lock lockerQueue(this->_lockQueue);
		this->_pushToQueue.wait(lockerQueue, [this](void){return !this->_queue.empty();});
		assert(!this->_queue.empty());
		Data result = std::move(this->_queue.front());
		this->_queue.pop();
		return result;
	}
	
	template< class Rep, class Period>
	Data pop(const std::chrono::duration<Rep, Period> WaitDuration)
	{
		Lock lockerQueue(this->_lockQueue);
		if(!this->_pushToQueue.wait(lockerQueue, WaitDuration, [this](void){return !this->_queue.empty();}))
			return Data();
		assert(!this->_queue.empty());
		Data result = std::move(this->_queue.front());
		this->_queue.pop();
		return result;
	}
};
template<class Data>	
using UnboundedQueueForUniquePtr = UnboundedQueueForNonThrowMovable<std::unique_ptr<Data>>;
template<class Data>
using UnboundedQueueForSharedPtr = UnboundedQueueForNonThrowMovable<std::shared_ptr<const Data>>;
template<class Data>
using UnboundedQueue = UnboundedQueueForUniquePtr<Data>;
int main() {
	cout<<"ok"<<endl;
	{
		//UnboundedQueueForSharedPtr<int>::value_type == std::shared_ptr<const int>
		UnboundedQueueForSharedPtr<int> queueSharedPtr;
		//auto a = std::make_shared<const int>(45);
		auto a = std::make_shared<int>(45);
		assert(a);
		queueSharedPtr.push(a);
		assert(!a);//Fired if you use "auto a = std::make_shared<int>(45)" below. It is compiler bug, I think, because previus code line must cause compile error.
		auto b = queueSharedPtr.pop();//std::shared_ptr<const int>
		assert(b);
		cout<<*b<<endl;
		assert(*b==45);
                                     
        
            http://ideone.com/qdsWJi
Немного глупый вопрос, почему в 90 строчке не получаем ошибку компиляции если закомментировать 87-ую строку и разкомментировать 88-ую?
        
        
            
 laMer007,
            16 Декабря 2013
        
        
        
         
        - 
        
        
                +7        
        
                            - 1
 - 2
 - 3
 - 4
 - 5
 
                        auto r = [&](){
for(auto i: a)
  if(i==k)
    return f(i);
}();
                                     
        
            Однажды мне знакомый рассказывал, что во многих языках плохие грязные циклы. Мол настоящие чистые циклы должны возвращать значение. Я написал ему вот это. Он многозначительно подумал и замолчал. Через две с половиной недели он уволился.
        
        
            
 LispGovno,
            14 Декабря 2013
        
        
        
         
        - 
        
        
                +15        
        
        
            
        
        
            
 TarasB,
            12 Декабря 2013
        
        
        
         
        - 
        
        
                +6        
        
                            - 01
 - 02
 - 03
 - 04
 - 05
 - 06
 - 07
 - 08
 - 09
 - 10
 - 11
 - 12
 - 13
 - 14
 - 15
 - 16
 - 17
 - 18
 - 19
 - 20
 - 21
 - 22
 - 23
 - 24
 - 25
 - 26
 - 27
 - 28
 - 29
 - 30
 - 31
 - 32
 - 33
 
                        class Log
{
	ReverseStruct<std::list<std::string> > _logList;
	semafor semafor;
	Log()
	{
		std::list<std::string> right , left;
		std::shared_ptr<std::list<std::string> > ptrRight=std::shared_ptr<std::list<std::string> >(*right);
		std::shared_ptr<std::list<std::string> > ptrLeft=std::shared_ptr<std::list<std::string> >(*left);
		_logList=TReverseStruct<std::list<std::string> >(ptrRight,ptrLeft);
	}
	void writeMessage(std::string message, Level level ){_logList.getWriteStorage.push_back( currentTime+level+messge); semafor.signal();}
	void body()
	{
		try
		{
			semafor.wait();
			_logList.revers();
			for (std::list<std::string>::iterator i =_logList.getReadStorage->begin(); i != _logList.getReadStorage->end(); ++i)
			{
			fixedBufferString<7000, '\0'> stringLog;
			stringLog.append(*i);
			FileDevice flashInternal(FLASHINTERNAL);
			const DriveErrors::E WriteResult = flashInternal.writeFile("log.iso", (byte*)stringLog.content(), stringLog.length());
			}
		}
		catch()
		{}
	}
}
                                     
        
            
        
        
            
 laMer007,
            11 Декабря 2013
        
        
        
         
        - 
        
        
                +15        
        
                            - 01
 - 02
 - 03
 - 04
 - 05
 - 06
 - 07
 - 08
 - 09
 - 10
 - 11
 - 12
 - 13
 - 14
 - 15
 - 16
 - 17
 - 18
 - 19
 - 20
 - 21
 - 22
 - 23
 - 24
 - 25
 - 26
 - 27
 - 28
 - 29
 - 30
 - 31
 - 32
 - 33
 - 34
 - 35
 - 36
 - 37
 - 38
 - 39
 - 40
 - 41
 - 42
 - 43
 - 44
 - 45
 - 46
 - 47
 - 48
 - 49
 - 50
 
                        if( (Input.GetMouseX() >= 545 && Input.GetMouseX() <= 567 && Input.GetMouseY() >= 165 && Input.GetMouseY() <= 197) || (Input.GetMouseX() >= 545 && Input.GetMouseX() <= 567 && Input.GetMouseY() >= 205 && Input.GetMouseY() <= 237) ||
            (Input.GetMouseX() >= 545 && Input.GetMouseX() <= 567 && Input.GetMouseY() >= 85 && Input.GetMouseY() <= 117) || (Input.GetMouseX() >= 545 && Input.GetMouseX() <= 567 && Input.GetMouseY() >= 125 && Input.GetMouseY() <= 157) ||
           (Input.GetMouseX() >= 675 && Input.GetMouseX() <= 707 && Input.GetMouseY() >= 85 && Input.GetMouseY() <= 117) || (Input.GetMouseX() >= 675 && Input.GetMouseX() <= 707 && Input.GetMouseY() >= 145 && Input.GetMouseY() <= 177) ||
           (Input.GetMouseX() >= 675 && Input.GetMouseX() <= 707 && Input.GetMouseY() >= 205 && Input.GetMouseY() <= 237)||
           (Input.GetMouseX() >= 780 && Input.GetMouseX() <= 807 && Input.GetMouseY() >= 85 && Input.GetMouseY() <= 117) || (Input.GetMouseX() >= 780 && Input.GetMouseX() <= 807 && Input.GetMouseY() >= 125 && Input.GetMouseY() <= 157) ||
           (Input.GetMouseX() >= 780 && Input.GetMouseX() <= 807 && Input.GetMouseY() >= 165 && Input.GetMouseY() <= 197) || (Input.GetMouseX() >= 780 && Input.GetMouseX() <= 807 && Input.GetMouseY() >= 205 && Input.GetMouseY() <= 237) ||
           ...
        {
            int i; int e;
            if(Input.GetMouseX() >= 55 && Input.GetMouseX() <= 87 && Input.GetMouseY() >= 210 && Input.GetMouseY() <= 242) i = 0;
            if(Input.GetMouseX() >= 95 && Input.GetMouseX() <= 127 && Input.GetMouseY() >= 210 && Input.GetMouseY() <= 242) i = 1;
            if(Input.GetMouseX() >= 135 && Input.GetMouseX() <= 167 && Input.GetMouseY() >= 210 && Input.GetMouseY() <= 242) i = 2;
            if(Input.GetMouseX() >= 175 && Input.GetMouseX() <= 207 && Input.GetMouseY() >= 210 && Input.GetMouseY() <= 242) i = 3;
            if(Input.GetMouseX() >= 215 && Input.GetMouseX() <= 247 && Input.GetMouseY() >= 210 && Input.GetMouseY() <= 242) i = 4;
            if(Input.GetMouseX() >= 255 && Input.GetMouseX() <= 287 && Input.GetMouseY() >= 210 && Input.GetMouseY() <= 242) i = 5;
            if(Input.GetMouseX() >= 295 && Input.GetMouseX() <= 327 && Input.GetMouseY() >= 210 && Input.GetMouseY() <= 242) i = 6;
            if(Input.GetMouseX() >= 335 && Input.GetMouseX() <= 367 && Input.GetMouseY() >= 210 && Input.GetMouseY() <= 242) i = 7;
            if(Input.GetMouseX() >= 55 && Input.GetMouseX() <= 87 && Input.GetMouseY() >= 250 && Input.GetMouseY() <= 282) i = 8;
            if(Input.GetMouseX() >= 95 && Input.GetMouseX() <= 127 && Input.GetMouseY() >= 250 && Input.GetMouseY() <= 282) i = 9;
            if(Input.GetMouseX() >= 135 && Input.GetMouseX() <= 167 && Input.GetMouseY() >= 250 && Input.GetMouseY() <= 282) i = 10;
            if(Input.GetMouseX() >= 175 && Input.GetMouseX() <= 207 && Input.GetMouseY() >= 250 && Input.GetMouseY() <= 282) i = 11;
            if(Input.GetMouseX() >= 215 && Input.GetMouseX() <= 247 && Input.GetMouseY() >= 250 && Input.GetMouseY() <= 282) i = 12;
            if(Input.GetMouseX() >= 255 && Input.GetMouseX() <= 287 && Input.GetMouseY() >= 250 && Input.GetMouseY() <= 282) i = 13;
            if(Input.GetMouseX() >= 295 && Input.GetMouseX() <= 327 && Input.GetMouseY() >= 250 && Input.GetMouseY() <= 282) i = 14;
            if(Input.GetMouseX() >= 335 && Input.GetMouseX() <= 367 && Input.GetMouseY() >= 250 && Input.GetMouseY() <= 282) i = 15;
            ...
            if(Input.GetMouseX() >= 55 && Input.GetMouseX() <= 87 && Input.GetMouseY() >= 410 && Input.GetMouseY() <= 442) i = 40;
            if(Input.GetMouseX() >= 95 && Input.GetMouseX() <= 127 && Input.GetMouseY() >= 410 && Input.GetMouseY() <= 442) i = 41;
            if(Input.GetMouseX() >= 135 && Input.GetMouseX() <= 167 && Input.GetMouseY() >= 410 && Input.GetMouseY() <= 442) i = 42;
            if(Input.GetMouseX() >= 175 && Input.GetMouseX() <= 207 && Input.GetMouseY() >= 410 && Input.GetMouseY() <= 442) i = 43;
            if(Input.GetMouseX() >= 215 && Input.GetMouseX() <= 247 && Input.GetMouseY() >= 410 && Input.GetMouseY() <= 442) i = 44;
            if(Input.GetMouseX() >= 255 && Input.GetMouseX() <= 287 && Input.GetMouseY() >= 410 && Input.GetMouseY() <= 442) i = 45;
            if(Input.GetMouseX() >= 295 && Input.GetMouseX() <= 327 && Input.GetMouseY() >= 410 && Input.GetMouseY() <= 442) i = 46;
            if(Input.GetMouseX() >= 335 && Input.GetMouseX() <= 367 && Input.GetMouseY() >= 410 && Input.GetMouseY() <= 442) i = 47;
           if(Input.GetMouseX() >= 545 && Input.GetMouseX() <= 567 && Input.GetMouseY() >= 85 && Input.GetMouseY() <= 117) e = 0; // Bracers
           if(Input.GetMouseX() >= 545 && Input.GetMouseX() <= 567 && Input.GetMouseY() >= 125 && Input.GetMouseY() <= 157) e = 1; // Hands
           if(Input.GetMouseX() >= 545 && Input.GetMouseX() <= 567 && Input.GetMouseY() >= 165 && Input.GetMouseY() <= 197) e = 2; // Sword
           if(Input.GetMouseX() >= 545 && Input.GetMouseX() <= 567 && Input.GetMouseY() >= 205 && Input.GetMouseY() <= 237) e = 3; // Off hand
           if(Input.GetMouseX() >= 675 && Input.GetMouseX() <= 707 && Input.GetMouseY() >= 85 && Input.GetMouseY() <= 117) e = 4; // Helmet
           if(Input.GetMouseX() >= 675 && Input.GetMouseX() <= 707 && Input.GetMouseY() >= 145 && Input.GetMouseY() <= 177) e = 5; // Chest
           if(Input.GetMouseX() >= 675 && Input.GetMouseX() <= 707 && Input.GetMouseY() >= 205 && Input.GetMouseY() <= 237)  e = 6; // Legs
                                     
        
            https://github.com/LaurentGomila/SFML/wiki/Tutorial%3A-Basic-Inventory-System
        
        
            
 Crazy_penguin,
            11 Декабря 2013
        
        
        
         
        - 
        
        
                +9        
        
                            - 1
 
                        #   define BOOST_MPL_AUX_NTTP_DECL(T, x) T x
                                     
        
            Очень интересный стайлгайд Алексей Гуртового
        
        
            
 crastinus,
            07 Декабря 2013
        
        
        
         
        - 
        
        
                +9        
        
                            - 01
 - 02
 - 03
 - 04
 - 05
 - 06
 - 07
 - 08
 - 09
 - 10
 - 11
 - 12
 - 13
 - 14
 - 15
 - 16
 - 17
 - 18
 - 19
 - 20
 - 21
 - 22
 - 23
 - 24
 - 25
 - 26
 - 27
 - 28
 - 29
 - 30
 - 31
 - 32
 - 33
 - 34
 - 35
 - 36
 - 37
 - 38
 - 39
 - 40
 - 41
 - 42
 - 43
 - 44
 - 45
 - 46
 - 47
 - 48
 - 49
 - 50
 - 51
 - 52
 - 53
 - 54
 - 55
 - 56
 - 57
 - 58
 - 59
 - 60
 - 61
 - 62
 - 63
 - 64
 - 65
 - 66
 - 67
 - 68
 - 69
 - 70
 - 71
 - 72
 - 73
 - 74
 - 75
 - 76
 - 77
 - 78
 - 79
 - 80
 - 81
 - 82
 
                        int numBlock = 0;
    for(int i = 0; i < 16; i++)
        for(int j = 0; j < 25; j++)
        {
        if(levelInfo[i][j].active)
        {
        if(levelInfo[i][j].part && levelInfo[i][j].type) continue;
        if(levelInfo[i][j].type)
        {
            tempLevel[numBlock*8  ] = i*24;
            tempLevel[numBlock*8+1] = (j)*24;
            tempLevel[numBlock*8+2] = (i+2)*24;
            tempLevel[numBlock*8+3] = (j)*24;
            tempLevel[numBlock*8+4] = (i+2)*24;
            tempLevel[numBlock*8+5] = (j+1)*24;
            tempLevel[numBlock*8+6] = i*24;
            tempLevel[numBlock*8+7] = (j+1)*24;
        }
        else
        {
            tempLevel[numBlock*8  ] = i*24;
            tempLevel[numBlock*8+1] = (j)*24;
            tempLevel[numBlock*8+2] = (i+1)*24;
            tempLevel[numBlock*8+3] = (j)*24;
            tempLevel[numBlock*8+4] = (i+1)*24;
            tempLevel[numBlock*8+5] = (j+1)*24;
            tempLevel[numBlock*8+6] = i*24;
            tempLevel[numBlock*8+7] = (j+1)*24;
        }
        if(levelInfo[i][j].type)
            for(int k = 0; k < 8; k++) tempTex[numBlock*8+k] = coord[0][k];
        else
            for(int k = 0; k < 8; k++) tempTex[numBlock*8+k] = coord[1][k];
        }
        else
        {
        tempLevel[numBlock*8  ] = i*24;
        tempLevel[numBlock*8+1] = (j)*24;
        tempLevel[numBlock*8+2] = (i+1)*24;
        tempLevel[numBlock*8+3] = (j)*24;
        tempLevel[numBlock*8+4] = (i+1)*24;
        tempLevel[numBlock*8+5] = (j+1)*24;
        tempLevel[numBlock*8+6] = i*24;
        tempLevel[numBlock*8+7] = (j+1)*24;
        for(int k = 0; k < 8; k++) tempTex[numBlock*8+k] = coord[2][k];
        }
        numBlock++;
        }
    for(int i = 0; i < 2; i++)
        for(int j = 0; j < 3; j++)
        {
            if(!fallBlocks[i][j].active) continue;
            if(fallBlocks[i][j].part && fallBlocks[i][j].type) continue;
            if(!fallBlocks[i][j].type)
            {
                tempLevel[numBlock*8  ] = (fallPosX+i)*24;
                tempLevel[numBlock*8+1] = (fallPosY-j)*24;
                tempLevel[numBlock*8+2] = (fallPosX+i+1)*24;
                tempLevel[numBlock*8+3] = (fallPosY-j)*24;
                tempLevel[numBlock*8+4] = (fallPosX+i+1)*24;
                tempLevel[numBlock*8+5] = (fallPosY-j+1)*24;
                tempLevel[numBlock*8+6] = (fallPosX+i)*24;
                tempLevel[numBlock*8+7] = (fallPosY-j+1)*24;
                for(int k = 0; k < 8; k++) tempTex[numBlock*8+k] = coord[1][k];
            }
            else
            {
                tempLevel[numBlock*8  ] = (fallPosX+i)*24;
                tempLevel[numBlock*8+1] = (fallPosY-j)*24;
                tempLevel[numBlock*8+2] = (fallPosX+i+2)*24;
                tempLevel[numBlock*8+3] = (fallPosY-j)*24;
                tempLevel[numBlock*8+4] = (fallPosX+i+2)*24;
                tempLevel[numBlock*8+5] = (fallPosY-j+1)*24;
                tempLevel[numBlock*8+6] = (fallPosX+i)*24;
                tempLevel[numBlock*8+7] = (fallPosY-j+1)*24;
                for(int k = 0; k < 8; k++) tempTex[numBlock*8+k] = coord[0][k];
            }
            numBlock++;
        }
                                     
        
            Нямка. В унитаз уже не помещается, вылью сюда
        
        
            
 pelmenka,
            07 Декабря 2013