| Mirage Source http://www.miragesource.net/forums/ |
|
| Tile Type reseting to 0...kinda http://www.miragesource.net/forums/viewtopic.php?f=201&t=3939 |
Page 1 of 1 |
| Author: | Asrrin29 [ Mon Jul 07, 2008 12:53 am ] |
| Post subject: | Tile Type reseting to 0...kinda |
I added a new tile type (TILE_TYPE_RESOURCE = 10) and it works great, however when I leave my server on for an extended period of time (seems like less then an hour though, not sure, it's hard to pinpoint a time) and don't do anything when I try and use my new tile type it doesn't register and the server sees that the type is set to = 0 when it should be = 10. When I use the /mapeditor command it sees that there is the proper type, and when I stop the server and restart it it sees it. it just seems that the tile variables get "cleared" in memory and I can't seem to find where. any help? EDIT: I think I found the problem. It seems my sub ClearMapItem was clearing all the variables of every tile on the map, which wiped out everything. I changed it to only check when the tile type is an item. |
|
| Page 1 of 1 | All times are UTC |
| Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |
|