~bulldog98/invertika/invertika-svn

« back to all changes in this revision

Viewing changes to src/gui/viewport.cpp

  • Committer: seeseekey
  • Date: 2011-10-06 06:48:04 UTC
  • Revision ID: svn-v4:784bf6b6-0765-11df-962c-b5c252e50527:trunk/client:5415
Client aktualisiert.

Show diffs side-by-side

added added

removed removed

Lines of Context:
201
201
 
202
202
        if (mDebugFlags)
203
203
        {
204
 
            if (mDebugFlags & (Map::MAP_GRID | Map::MAP_COLLISION_TILES))
 
204
            if (mDebugFlags & (Map::DEBUG_GRID | Map::DEBUG_COLLISION_TILES))
205
205
            {
206
206
                mMap->drawCollision(graphics, (int) mPixelViewX,
207
207
                                    (int) mPixelViewY, mDebugFlags);
294
294
 
295
295
void Viewport::_drawDebugPath(Graphics *graphics)
296
296
{
297
 
    if (mDebugFlags & Map::MAP_MOUSE_PATH)
 
297
    if (mDebugFlags & Map::DEBUG_MOUSE_PATH)
298
298
    {
299
299
        // Get the current mouse position
300
300
        SDL_GetMouseState(&mMouseX, &mMouseY);
359
359
        const Vector &beingPos = being->getPosition();
360
360
        graphics->setColor(gcn::Color(128, 128, 0, 150));
361
361
 
362
 
        if (mDebugFlags & Map::MAP_BEING_COLLISION_RADIUS)
 
362
        if (mDebugFlags & Map::DEBUG_BEING_COLLISION_RADIUS)
363
363
        {
364
364
            const int radius = being->getCollisionRadius();
365
365
            graphics->fillRectangle(gcn::Rectangle(
370
370
                                        radius * 2, radius * 2));
371
371
        }
372
372
 
373
 
        if (mDebugFlags & Map::MAP_BEING_PATH)
 
373
        if (mDebugFlags & Map::DEBUG_BEING_PATH)
374
374
            _drawPath(graphics, being->getPath(), gcn::Color(0, 0, 255, 150));
375
375
 
376
 
        if (mDebugFlags & Map::MAP_BEING_POSITION)
 
376
        if (mDebugFlags & Map::DEBUG_BEING_POSITION)
377
377
        {
378
378
            // Draw the absolute x, y position using a cross.
379
379
            graphics->setColor(gcn::Color(0, 0, 255, 255));