Jump to content

  • Log In with Google      Sign In   
  • Create Account

#Actualblack_darkness

Posted 20 December 2012 - 11:13 AM

You could delete your map object and make a new one with the file.

eg:
delete mapobject;
mapobject = 0;
mapobject = new maptype(filename);

That will flush out everything and let you start fresh.


I tried all three and a lot of other things.

When I write delete mve it says expression must have pointer or handle type. I tested this and outside of the game loop you can delete mve just fine.

Any ideas?
I am trying to clear mve on lines 242 and 245.

Here is main.cpp http://pastebin.com/ijniABZi
Here is main.h http://pastebin.com/C8czy6a5
Here is maps.h http://pastebin.com/LscF4HPj

#4black_darkness

Posted 20 December 2012 - 11:12 AM

You could delete your map object and make a new one with the file.

eg:
delete mapobject;
mapobject = 0;
mapobject = new maptype(filename);

That will flush out everything and let you start fresh.


I tried all three and a lot of other things.

When I write delete mve it says expression must have pointer or handle type. I tested this and outside of the game loop you can delete mve just fine.

Any ideas?

Here is main.cpp http://pastebin.com/ijniABZi
Here is main.h http://pastebin.com/C8czy6a5
Here is maps.h http://pastebin.com/LscF4HPj

#3black_darkness

Posted 20 December 2012 - 11:11 AM

You could delete your map object and make a new one with the file.

eg:
delete mapobject;
mapobject = 0;
mapobject = new maptype(filename);

That will flush out everything and let you start fresh.


I tried all three and a lot of other things.

When I write delete mve it says expression must have pointer or handle type. I tested this and outside of the game loop you can delete mve just fine.

Any ideas?

Here is main.cpp http://pastebin.com/ijniABZi
Here is main.h http://pastebin.com/C8czy6a5

#2black_darkness

Posted 20 December 2012 - 11:10 AM

You could delete your map object and make a new one with the file.

eg:
delete mapobject;
mapobject = 0;
mapobject = new maptype(filename);

That will flush out everything and let you start fresh.


I tried all three and a lot of other things.

When I write delete mve it says expression must have pointer or handle type. I tested this and outside of the game loop you can delete mve just fine.

Any ideas?

Here is main.cpp http://pastebin.com/ijniABZi

#1black_darkness

Posted 20 December 2012 - 11:09 AM

You could delete your map object and make a new one with the file.

eg:
delete mapobject;
mapobject = 0;
mapobject = new maptype(filename);

That will flush out everything and let you start fresh.


I tried all three and a lot of other things.

When I write delete mve it says expression must have pointer or handle type. I tested this and outside of the game loop you can delete mve just fine.

Any ideas?

PARTNERS