blob: 20abd91308b6ce15d61c52a2beffad5681550871 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
--- gi_sdl.c.orig 2004-06-01 21:51:58.000000000 +0300
+++ gi_sdl.c 2004-06-01 22:13:59.000000000 +0300
@@ -606,6 +606,7 @@
{
int i,found;
gi_sdl_data *data = &GI;
+ char temp_path[70];
switch(e.type) {
@@ -714,7 +715,8 @@
sim_start(&g->sim);
break;
case SDLK_F6:
- map_save(&g->sim.map, "saved.mus");
+ sprintf(temp_path, "%s/saved.mus", getenv("HOME"));
+ map_save(&g->sim.map, temp_path);
break;
case SDLK_F1:
game_restart(g);
|