changed the time=anything to time=stamp and added the changelog entry
This commit is contained in:
parent
9dfb10ebbb
commit
6b69681aba
2 changed files with 4 additions and 1 deletions
|
@ -12,6 +12,7 @@ Version 1.3.3+svn:
|
|||
* WML engine
|
||||
* removed deprecated keys image_healing and image_halo_healing
|
||||
* empty user_description now remains empty unless generate_description set (bug 8522).
|
||||
* set_variable has the key time=stamp now, to get a timestamp in milliseconds
|
||||
* user interface:
|
||||
* fixed a lag in the path rendering when there is a lot of units
|
||||
* maps smaller than the screen are now shown centered on the screen
|
||||
|
|
|
@ -984,8 +984,10 @@ bool event_handler::handle_event_command(const queued_event& event_info,
|
|||
}
|
||||
}
|
||||
|
||||
// Note maybe we add more options later eg strftime formatting
|
||||
// for now make the stamp mandatory
|
||||
const std::string time = cfg["time"];
|
||||
if(time.empty() == false) {
|
||||
if(time == "stamp") {
|
||||
char buf[50];
|
||||
snprintf(buf,sizeof(buf),"%d",SDL_GetTicks());
|
||||
var = buf;
|
||||
|
|
Loading…
Add table
Reference in a new issue