OSDN Git Service

[BUGGY] Reset Header files.
authorDeskull <deskull@users.sourceforge.jp>
Sat, 12 Apr 2014 14:54:24 +0000 (23:54 +0900)
committerDeskull <deskull@users.sourceforge.jp>
Sat, 12 Apr 2014 14:54:24 +0000 (23:54 +0900)
Deeangband/GameSurfaceSDL.cpp
Deeangband/GameWorld.h

index 4e7a9b1..2f442a6 100644 (file)
@@ -291,12 +291,15 @@ namespace Deeangband
                                if(px < floorPtr->GetWidth() && py < floorPtr->GetHeight())
                                {
                                        TAG tag = floorPtr->GetSquare(px, py)->getFeatureTag();
-                                       Color symColor = floorPtr->GetGameWorld()->GetFeature(tag)->GetSymColor();
-                                       Color backColor = floorPtr->GetGameWorld()->GetFeature(tag)->GetBackColor();
+                                       //Color symColor = floorPtr->GetGameWorld()->GetFeature(tag)->GetSymColor();
+                                       //Color backColor = floorPtr->GetGameWorld()->GetFeature(tag)->GetBackColor();
+                                       Color symColor = {100, 100, 100};
+                                       Color backColor = {0, 0, 0};
                                        SDL_Color sdlSymCol = {(Uint8)symColor.r, (Uint8)symColor.g, (Uint8)symColor.b, (Uint8)symColor.a};
                                        SDL_Rect blitRect = {240 + px * 24, py * 24 , 24, 24};
                                        SDL_FillRect(windowSurface, &blitRect, SDL_MapRGBA(windowSurface->format, (Uint8)backColor.r, (Uint8)backColor.g, (Uint8)backColor.b, (Uint8)backColor.a));
-                                       sprintf_s(symBuf, 5, "%c", floorPtr->GetGameWorld()->GetFeature(tag)->GetSymbol()); 
+                                       //sprintf_s(symBuf, 5, "%c", floorPtr->GetGameWorld()->GetFeature(tag)->GetSymbol()); 
+                                       sprintf_s(symBuf, 5, "%c", 'X'); 
 
                                        symbolSurface = TTF_RenderUTF8_Blended(font, toUTF8(symBuf).c_str(), sdlSymCol);
                                        blitRect.x += (24 - symbolSurface->w) / 2;
index 06358de..b313b3e 100644 (file)
@@ -21,6 +21,7 @@
 #include "Effect.h"
 #include "Feature.h"
 #include "FixedArtifact.h"
+#include "GameSurface.h"
 #include "ItemBase.h"
 #include "ItemEgo.h"
 #include "ItemTrait.h"