Moved the single terrain update which in only used in the editor...
...to editor_display so it can't be used in the main game by accident.
This commit is contained in:
parent
159e687d79
commit
faef92f397
1 changed files with 4 additions and 3 deletions
|
@ -223,9 +223,6 @@ public:
|
|||
//! Copy the backbuffer to the framebuffer.
|
||||
void update_display();
|
||||
|
||||
//! Rebuild the dynamic terrain at the given location.
|
||||
void rebuild_terrain(const gamemap::location &loc)
|
||||
{ builder_.rebuild_terrain(loc); }
|
||||
//! Rebuild all dynamic terrain.
|
||||
void rebuild_all() { builder_.rebuild_all(); }
|
||||
|
||||
|
@ -450,6 +447,10 @@ public:
|
|||
//! draw() for the editor display.
|
||||
//! It only has to know about terrain.
|
||||
void draw(bool update=true,bool force=false);
|
||||
|
||||
//! Rebuild the dynamic terrain at the given location.
|
||||
void rebuild_terrain(const gamemap::location &loc)
|
||||
{ builder_.rebuild_terrain(loc); }
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Reference in a new issue