luciensadi / AwakeMUD

The Community Edition fork of the 'Awakened Worlds' Shadowrun 3 MUD codebase.
Other
55 stars 31 forks source link

PURGE in a room where a character is in a vehicle results in that char's vehicle pointer being set to -1. #139

Closed luciensadi closed 5 years ago

luciensadi commented 5 years ago

This is fixable with the LEAVE command, but this puts the character in room 0. Purge should put the character outside of their vehicle (as well as any NPCs etc).

luciensadi commented 5 years ago
< 10P 10M >
push west bis
You push a Eurocar Westwind 2000 into the back of A Ford-Canada Bison.

< 10P 10M >
push bis gmc
You push A Ford-Canada Bison into the back of A GMC 4201.

< 10P 10M >
l
[ 1399] Crazy Lenny's Crazy Deals [ STREETLIGHTS, GARAGE ]
   You are surrounded by a great number of cars, lining the whole lot from
front to back, of more makes and models than most would ever dream.  Ford.
Isuzu.  Mitsubishi.  Dodge.  Toyota.  Aztechnology.  Its all there, and its
all for sale.  There is a crazy ork in a plaid zoot-suit walking up and down
the lot, with a huge grin on his face. 
Obvious exits:
South - [32670] Espanoza Way
A sturdy looking truck is taking up alot of room here.

< 10P 10M >
enter gmc
You climb into A GMC 4201.

< 10P 10M >
swi
You climb into the back.

< 10P 10M >
enter bis
You climb into A Ford-Canada Bison.

< 10P 10M >
swi
You climb into the back.

< 10P 10M >
enter west
You climb into a Eurocar Westwind 2000.
< 10P 10M >
at 1399 purge
< 10P 10M >
shout test
[SYSLOG: SYSERR: get_current_world_index() was given neither a valid char nor veh. Returning 0, this will cause problems.]
You shout, 'test'

< 10P 10M >
l
Inside a Eurocar Westwind 2000
You feel the power of this speed machine when you enter.  The doors lock to
create an air-tight environmentally controlled system that keeps the insides
of the car at an even 19.6 degrees Celsius, no matter what the temperature
outside is.  The interior is lined with comfortable lambskin, and the dash is
a plasticoated titanium.  In the dash is a large array of computer equipment,
monitoring every aspect of the automobile from battery charges to fuel
efficiency and mileage, to the speed at which you are zooming down the road.
The Eurocar has a HEAT automatic transmission which includes a variable gear
system for efficiency and power on the road.  There is a very expensive sound
system in the dashboard with eight Vibe-Depth(tm) automotive speakers with a
max power of 10 kilowatts.
Inside A Ford-Canada Bison
The back end of the Bison is huge, enough for a family to live in for quite a
while. It could easily house 4 people without them getting in each others way
too much. Plush seating up the front gives way to a kitchen, small bathroom
and two seperated bedrooms at the rear. 

< 10P 10M >
leave
You climb out into A Ford-Canada Bison.

leave
< 10P 10M >
You climb out into (null).

leave
< 10P 10M >
You climb out into the street.

< 10P 10M >
l
[    0] A Bright Light [ INDOORS, PEACEFUL ]
   What... oh no.... you're not dead are you? Better take one last grab at
life while you still can.  
Obvious exits:
 None.

< 10P 10M >
luciensadi commented 5 years ago

What is the appropriate behavior here? I suspect it's that all nested vehicles and characters should be destroyed as well.